/* Shopify theme showcase (service page), live previews and the download dialog.
   Uses the site palette from pages.css; --th-* variables carry each theme's own tokens. */

/* ---------- Showcase grid ---------- */
.tshow__lead { max-width: 52ch; color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.tshow__steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; }
.tshow__steps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.tshow__steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: .78rem; }
.tgrid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(8,26,32,.45); border-color: color-mix(in srgb, var(--th-accent) 45%, var(--line)); }
.tcard__shot { position: relative; display: block; padding: 18px 18px 0; background: linear-gradient(160deg, color-mix(in srgb, var(--th-accent) 22%, #fff), color-mix(in srgb, var(--th-alt) 80%, #fff)); overflow: hidden; text-decoration: none; }
.tcard__peek { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; transform: translate(-50%, -30%) scale(.9); opacity: 0; transition: all .35s var(--ease); }
.tcard__peek .lucide { width: 16px; height: 16px; }
.tcard:hover .tcard__peek, .tcard__shot:focus-visible .tcard__peek { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tcard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.tcard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tcard__name { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.tcard__ind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: color-mix(in srgb, var(--th-accent) 14%, #fff); color: var(--ink); border: 1px solid color-mix(in srgb, var(--th-accent) 35%, #fff); }
.tcard__ind .lucide { width: 14px; height: 14px; }
.tcard__tag { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.tcard__swatches { display: flex; align-items: center; gap: 6px; }
.tcard__swatches span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(8,26,32,.15); }
.tcard__swatches small { margin-left: 6px; color: var(--ink-soft); font-size: .78rem; }
.tcard__cta { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: auto; padding-top: 6px; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .25s var(--spring), background .25s, color .25s, border-color .25s; }
.tbtn:hover { transform: translateY(-2px); background: var(--blue); border-color: var(--blue); }
.tbtn:disabled { opacity: .6; cursor: wait; transform: none; }
.tbtn .lucide { width: 17px; height: 17px; }
.tbtn--ghost { background: transparent; color: var(--ink); }
.tbtn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tbtn--lg { min-height: 54px; font-size: 1rem; width: 100%; }
.tbtn--light { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tbtn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.tbtn--outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.tbtn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Screenshot card art: desktop shot with a floating phone ---------- */
.tshot { position: relative; display: block; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.35); transition: transform .6s var(--ease); transform-origin: bottom center; }
.tshot__bar { display: flex; gap: 5px; padding: 8px 10px; background: #eef0f2; border-radius: 12px 12px 0 0; }
.tshot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd4d9; }
.tshot__desk { width: 100%; height: auto; aspect-ratio: 1200 / 834; object-fit: cover; object-position: top; }
.tshot__phone { position: absolute; right: 12px; bottom: 12px; width: 22%; height: auto; border-radius: 12px; border: 3px solid #0b1418; box-shadow: 0 18px 30px -12px rgba(0,0,0,.55); transform: translateY(10px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.tcard:hover .tshot { transform: translateY(-4px) scale(1.015); }
.tcard:hover .tshot__phone, .tcard:focus-within .tshot__phone { transform: none; opacity: 1; }
@media (hover: none) { .tshot__phone { opacity: 1; transform: none; } }
.tcard__name a { color: inherit; text-decoration: none; }
.tcard[hidden] { display: none; }
.tshow__more { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }
.tshow__more .tbtn { display: inline-flex; padding: 0 26px; }

/* ---------- Themes hub ---------- */
.thub-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 32px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.75); font-size: .92rem; }
.thub-stats b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--yellow); line-height: 1.1; }
.thub-filter { display: flex; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.thub-filter::-webkit-scrollbar { display: none; }
.thub-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.thub-chip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--paper); font-size: .74rem; }
.thub-chip:hover { border-color: var(--ink); }
.thub-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.thub-chip.is-active span { background: var(--yellow); color: var(--ink); }
.thub-info { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 990px) { .thub-info { grid-template-columns: 1.4fr 1fr; } }
.thub-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.thub-list li { display: flex; gap: 14px; color: var(--ink-soft); line-height: 1.55; }
.thub-list b { color: var(--ink); }
.thub-list .lucide { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.thub-cta { display: grid; gap: 12px; padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--ink); color: #fff; }
.thub-cta h2 { margin: 0; font-family: var(--display); font-size: 1.5rem; }
.thub-cta p { margin: 0 0 8px; color: rgba(255,255,255,.75); }
.tfaq { display: grid; gap: 10px; max-width: 920px; }
.tfaq__item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.tfaq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.tfaq__item summary::-webkit-details-marker { display: none; }
.tfaq__item summary .lucide { flex-shrink: 0; width: 20px; height: 20px; transition: transform .25s; }
.tfaq__item[open] summary .lucide { transform: rotate(45deg); }
.tfaq__item p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }
.tfaq--dark .tfaq__item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.tfaq--dark .tfaq__item p { color: rgba(255,255,255,.72); }

/* ---------- Download dialog ---------- */
.tdl { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(8,26,32,.6); overflow: auto; }
.tdl::backdrop { background: rgba(8,26,32,.6); backdrop-filter: blur(6px); }
.tdl[open] { animation: tdlIn .4s var(--ease); }
@keyframes tdlIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.tdl__pane { padding: clamp(24px, 4vw, 40px); }
.tdl__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; z-index: 1; }
.tdl__close:hover { background: var(--line); }
.tdl__title { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.15; padding-right: 36px; }
.tdl__sub { color: var(--ink-soft); margin: 0 0 18px; }
.tdl__sub a { color: var(--blue); font-weight: 600; }
.tdl__form { display: grid; gap: 14px; }
.tdl__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .tdl__row { grid-template-columns: 1fr 1fr; } }
.tdl__label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.tdl__field { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); transition: border-color .2s, background .2s; }
.tdl__field:focus { outline: none; border-color: var(--blue); background: #fff; }
.tdl__area { min-height: 96px; resize: vertical; }
.tdl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tdl__status { min-height: 1.2em; margin: 0; font-size: .9rem; font-weight: 600; }
.tdl__fine { margin: 0; font-size: .8rem; color: var(--ink-soft); text-align: center; }
.tdl__ok { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.tdl__ok .lucide { width: 32px; height: 32px; stroke-width: 2.6; }
.tdl__steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Live preview page: toolbar + device frame ---------- */
.tpv { min-height: 100vh; background: #0b1418; color: #fff; }
.tpv__bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px clamp(16px, 3vw, 28px); background: rgba(8,20,24,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'Instrument Sans', system-ui, sans-serif; }
.tpv__back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.tpv__back:hover { color: #fff; }
.tpv__back .lucide { width: 16px; height: 16px; }
.tpv__title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.tpv__title b { font-family: var(--display); font-size: 1.05rem; }
.tpv__title span { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .76rem; }
.tpv__devices { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tpv__devices button { display: grid; place-items: center; min-width: 38px; padding: 0 10px; font: inherit; font-size: .84rem; font-weight: 600; height: 34px; border: 0; border-radius: 999px; background: none; color: rgba(255,255,255,.7); cursor: pointer; }
.tpv__devices button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.tpv__devices .lucide { width: 17px; height: 17px; }
.tpv__nav { display: inline-flex; gap: 6px; }
.tpv__nav a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.tpv__nav a:hover { background: rgba(255,255,255,.12); }
.tpv__nav .lucide { width: 17px; height: 17px; }
.tpv__bar .tbtn { min-height: 40px; }
.tpv__stage { padding: clamp(16px, 3vw, 32px); }
.tpv__frame { margin: 0 auto; max-width: 1440px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); transition: max-width .5s var(--ease); }
.tpv__frame[data-device="tablet"] { max-width: 820px; }
.tpv__frame[data-device="mobile"] { max-width: 400px; border-radius: 28px; }
.tpv__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f2; color: #5b6770; font-family: system-ui, sans-serif; font-size: .78rem; }
.tpv__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7db; }
.tpv__chrome span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; background: #fff; flex: 1; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpv__frame iframe { display: block; width: 100%; height: calc(100vh - 150px); min-height: 560px; border: 0; background: #fff; }
.tpv__info { max-width: 1440px; margin: 28px auto 0; display: grid; gap: 24px; font-family: 'Instrument Sans', system-ui, sans-serif; }
@media (min-width: 900px) { .tpv__info { grid-template-columns: 1.4fr 1fr; } }
.tpv__card { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.tpv__card h2 { margin: 0 0 10px; font-family: var(--display); font-size: 1.3rem; }
.tpv__card p { color: rgba(255,255,255,.75); margin: 0 0 14px; }
.tpv__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.85); }
.tpv__list li { display: flex; gap: 10px; align-items: flex-start; }
.tpv__list .lucide { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--yellow); }
.tpv__card .tbtn { margin-top: 8px; }
@media (max-width: 640px) { .tpv__devices { display: none; } .tpv__title span { display: none; } }

.tpv__info--full { margin-top: 24px; }
@media (min-width: 900px) { .tpv__info--full { grid-template-columns: 1.4fr 1fr; } }
.tpv__crumb { margin-bottom: 14px; font-size: .85rem; color: rgba(255,255,255,.6); }
.tpv__crumb a { color: rgba(255,255,255,.8); }
.tpv__h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.tpv__lead { font-size: 1.05rem; }
.tpv__card h2 { margin-top: 26px; }
.tpv__card > h2:first-child { margin-top: 0; }
.tpv__phone { float: right; width: 120px; margin: 0 0 12px 16px; border-radius: 16px; border: 3px solid rgba(255,255,255,.15); }
.tpv__steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: rgba(255,255,255,.85); }
.tpv__btns { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.tpv__related { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tpv__related a { display: block; color: #fff; text-decoration: none; }
.tpv__related img { width: 100%; height: auto; border-radius: 10px; transition: transform .4s var(--ease); }
.tpv__related a:hover img { transform: translateY(-3px); }
.tpv__related span { display: flex; flex-direction: column; margin-top: 8px; font-size: .82rem; color: rgba(255,255,255,.6); }
.tpv__related b { color: #fff; font-size: .95rem; }
