/* v7-bridge.css - v7.0.0 - 2026-11-15
   Lets the v7 design (v7.css, built standalone) live next to the legacy stylesheets
   (layout.css / theme.css / product-card.css are still loaded for legacy modals + JS).
   Loaded only by app/Views/v7/layout.blade.php (REDESIGN_V7=1). */

/* layout.css: `* {margin:0;padding:0}` - give v7 elements their user-agent spacing back
   (v7 rules all have higher specificity than .sgx :where(*), so they still win) */
.sgx :where(*:not(.legacy-body *)){margin:revert;padding:revert}
/* .legacy-body = an existing page body rendered inside the v7 chrome: keeps layout.css's reset + its own styles */
.sgx .legacy-body{font-family:inherit;color:#1f2937;line-height:1.6}
.sgx .legacy-body .container{max-width:1200px;margin:0 auto;padding:0 16px}
.sgx :where(img,svg,video,canvas){vertical-align:middle}

/* layout.css: body is a flex column with Rubik + gray-50 - v7 owns the page */
body.v7-body{display:block;margin:0;background:#F7F5FF;font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html[lang="he"] body.v7-body{font-family:"Heebo","Plus Jakarta Sans",system-ui,sans-serif}
html[lang="th"] body.v7-body{font-family:"Noto Sans Thai","Plus Jakarta Sans",system-ui,sans-serif}

/* layout.css kills focus rings with !important; keyboard users need them */
.sgx :focus-visible{outline:2px solid #6A2CF0 !important;outline-offset:3px}

/* legacy chrome replaced by v7 equivalents */
body.v7-body .floating-toolbar,
body.v7-body #toastContainer{display:none !important}

/* legacy modals/overlays keep their own styling but use the v7 font */
body.v7-body .feedback-modal,
body.v7-body .confirm-modal,
body.v7-body .comparison-tray,
body.v7-body .comparison-modal{font-family:inherit}

/* v7 header favorites list items link styling */
.sgx .fav-list b a{text-decoration:none}
.sgx .fav-list b a:hover{text-decoration:underline}

/* search: Best Match store rows are links in production */
.sgx .bm-buy a.row{color:var(--ink);text-decoration:none;border-radius:8px}
.sgx .bm-buy a.row.low{color:var(--green)}
.sgx .bm-buy a.row:hover b{text-decoration:underline}
/* search: Best Match placeholder while the AI ranking loads (same shimmer as .skel) */
.sgx .bm-loading .sk{display:block;background:linear-gradient(90deg,#F0EDF9 25%,#E6E1F6 50%,#F0EDF9 75%);background-size:200% 100%;animation:sgsk 1.2s linear infinite}
.sgx .bm-loading .bm-img.sk{border-radius:16px;min-height:120px}
.sgx .bm-loading .bm-buy{display:grid;gap:10px;align-content:start}
@media (prefers-reduced-motion:reduce){.sgx .bm-loading .sk{animation:none}}

/* articles/tutorials: category pills are links in production (server-side filter) */
.sgx a.apill{color:var(--ink);text-decoration:none}
.sgx a.apill[aria-current="page"]{background:var(--grad);color:#fff;box-shadow:var(--sh-btn)}
.sgx a.apill[aria-current="page"] svg{color:#fff}
.sgx form.asearch{margin:0}
/* simple pager */
.sgx .pager{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:22px}
.sgx .pager a,.sgx .pager span{min-width:44px;height:44px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:var(--sh-card);display:inline-flex;align-items:center;justify-content:center;font-weight:700;color:var(--ink);text-decoration:none}
.sgx .pager [aria-current="page"]{background:var(--grad);color:#fff}

/* article body: elements real articles use that the design sample did not (tables, h3, ol, quotes, images) */
.sgx .prose h3{font-size:20px;line-height:1.3;color:var(--ink);margin:28px 0 10px;font-weight:800}
.sgx .prose ol{margin:0 0 18px;padding-inline-start:22px}
.sgx[dir="rtl"] .prose ul,.sgx .prose[dir="rtl"] ul{padding-left:0;padding-right:22px}
.sgx .prose a{color:var(--p-ink);font-weight:600;text-underline-offset:3px}
.sgx .prose strong,.sgx .prose b{color:var(--ink)}
.sgx .prose img{max-width:100%;height:auto;border-radius:var(--r-md)}
.sgx .prose blockquote{margin:0 0 18px;padding:14px 18px;border-inline-start:4px solid var(--p1);background:var(--p-tint);border-radius:12px;color:var(--ink)}
.sgx .prose table{width:100%;border-collapse:separate;border-spacing:0;margin:0 0 22px;font-size:15px;background:#fff;border-radius:var(--r-md);overflow:hidden;box-shadow:var(--sh-card);display:block;overflow-x:auto}
.sgx .prose thead th{background:var(--p-tint);color:var(--ink);font-weight:800;text-align:start}
.sgx .prose th,.sgx .prose td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top;text-align:start}
.sgx .prose tr:last-child td{border-bottom:0}
.sgx .prose details{background:#fff;border-radius:14px;box-shadow:var(--sh-card);padding:14px 18px;margin-bottom:10px}
.sgx .prose summary{font-weight:700;color:var(--ink);cursor:pointer}
.sgx .prose .acc,.sgx .prose .apb{max-width:none}
.sgx .art-side .toc ol{padding-inline-start:20px}
/* /best: topic without product photos yet -> one wide cover instead of 3 tiles */
.sgx .tc-img img.ph{grid-column:1/-1;aspect-ratio:3/1;object-fit:cover;background:none}
/* search bar inside vertical (flex-column) panels: the .sbar flex-basis (520px) must not become its height */
.sgx .try .sbar,.sgx .ccta .sbar,.sgx .empty-st .sbar{flex:0 0 auto;width:100%}
.sgx .try .sbar input{min-width:0}

/* auth/account: server flash messages */
.sgx .v7-alert{border-radius:14px;padding:12px 14px;font-weight:600;font-size:14.5px;margin:0 0 14px}
.sgx .v7-alert.err{background:#FDECEE;color:#9F1239}
.sgx .v7-alert.ok{background:var(--green-tint);color:var(--green)}
.sgx .in[aria-invalid="true"]{box-shadow:0 0 0 2px var(--red)}

/* legal / faq / help: blocks used by the real page copy */
.sgx .legal-body .highlight-box,.sgx .legal-body .warning-box,.sgx .legal-body .contact-box{border-radius:14px;padding:14px 18px;margin:0 0 18px}
.sgx .legal-body .highlight-box{background:var(--p-tint);color:var(--ink)}
.sgx .legal-body .warning-box{background:#FFF7E6;color:#7A4B00}
.sgx .legal-body .contact-box{background:var(--grad-band);color:#fff}
.sgx .legal-body .contact-box a.btn{background:#fff;color:var(--p-ink)!important}
.sgx .faq .faq-a{margin:0 0 16px;color:var(--ink-2);font-size:15.5px;line-height:1.65}
.sgx .faq .faq-a ul,.sgx .faq .faq-a ol{margin:8px 0;padding-inline-start:20px}
.sgx .join .btn-primary,.sgx .legal-body .btn-primary{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:999px;background:#FFD23F;color:#3B2A00;font-weight:800;text-decoration:none}
.sgx .join h2,.sgx .join h3{margin:0 0 6px;color:#fff}
.sgx .join p{color:rgba(255,255,255,.9);margin:0 0 12px}
