/*
 * A shop page's storefront (/@{shop_name}): the Home tab's sections (resources/views/frontend/pages/shop/_home.blade.php)
 * and the theme the seller picked (App\Support\ShopStorefront::themeAttrs — colour variables and zs-t-* classes on .zs).
 */

/* ---------- theme ---------- */
.zs.zs-t-round { --zs-r: 22px; }
.zs.zs-t-sharp { --zs-r: 6px; }
.zs.zs-t-sharp .zs-btn, .zs.zs-t-sharp .zs-tabs, .zs.zs-t-sharp .zs-tabs button, .zs.zs-t-sharp .zs-search input, .zs.zs-t-sharp .zs-select, .zs.zs-t-sharp .zs-filter-btn { border-radius: 6px; }
.zs.zs-t-round .zs-btn, .zs.zs-t-round .zs-search input, .zs.zs-t-round .zs-select, .zs.zs-t-round .zs-filter-btn { border-radius: 999px; }
.zs.zs-t-round .zs-tabs { border-radius: 999px; }
.zs.zs-t-round .zs-tabs button { border-radius: 999px; }
.zs .zs-btn.primary:hover { background: var(--zs-pd, var(--zx-brand-dark, #066a9f)); border-color: var(--zs-pd, var(--zx-brand-dark, #066a9f)); }
.zs .zs-follow.on { background: var(--zs-p2); border-color: color-mix(in srgb, var(--zs-p) 30%, #fff); color: var(--zs-pd) !important; }
.zs .zs-banner { background-color: var(--zs-p); }
.zs.zs-t-cover-short .zs-banner { height: 150px; }
.zs.zs-t-grid-large .zs-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.zs.zs-t-grid-compact .zs-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.zs.zs-t-center .zs-profile { flex-direction: column; align-items: center; text-align: center; }
.zs.zs-t-center .zs-who { margin-top: 10px; }
.zs.zs-t-center .zs-meta, .zs.zs-t-center .zs-social-row, .zs.zs-t-center .zs-actions { justify-content: center; }
.zs.zs-t-center .zs-actions { margin-top: 4px; }
.zs.zs-t-center .zs-desc { text-align: center; max-width: 760px; margin-inline: auto; }
@media (max-width: 575.98px) {
    .zs.zs-t-grid-large .zs-grid { grid-template-columns: 1fr; }
    .zs.zs-t-grid-compact .zs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .zs.zs-t-cover-short .zs-banner { height: auto; aspect-ratio: 4 / 1; min-height: 90px; }
    .zs.zs-t-center .zs-profile { display: flex; }
}
/* the owner looking at a shop that isn't public yet */
.zs-owner-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px; }
.zs-owner-note a { margin-inline-start: auto; font-weight: 700; color: #92400e; text-decoration: underline !important; white-space: nowrap; }

/* ---------- home sections ---------- */
.zh { display: flex; flex-direction: column; gap: 26px; }
.zh-box { min-width: 0; }
.zh-sec { min-width: 0; }
.zh-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.zh-head h2, .zh-text h2, .zh-faq h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--zs-text); line-height: 1.3; }
.zh-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--zs-p2); color: var(--zs-pd, var(--zs-p)) !important; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s; }
.zh-all:hover { background: color-mix(in srgb, var(--zs-p) 18%, #fff); }
.zh-all em { font-style: normal; font-size: 11.5px; opacity: .75; }
.zh-all i { font-size: 11px; }
@media (max-width: 767.98px) { .zh-dev-desktop { display: none; } }
@media (min-width: 768px) { .zh-dev-phone { display: none; } }
.zh-align-center .zh-head, .zh-align-center .zh-text, .zh-align-center .zh-faq h2 { text-align: center; justify-content: center; }
.zh-align-center .zh-ann { justify-content: center; }
.zh-align-center .zh-badges { justify-content: center; }

/* announcement */
.zh-ann { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--zs-r); background: var(--zs-p); color: #fff !important; font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.zh-ann.tone-orange { background: linear-gradient(90deg, #ea580c, #f59e0b); }
.zh-ann.tone-dark { background: #0f172a; }
.zh-ann.tone-green { background: #047857; }
.zh-ann > i:first-child { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 13px; }
.zh-ann-go { margin-inline-start: auto; transition: transform .15s; }
a.zh-ann:hover .zh-ann-go { transform: translateX(3px); }
[dir=rtl] a.zh-ann:hover .zh-ann-go, html[lang=ar] a.zh-ann:hover .zh-ann-go { transform: translateX(-3px); }

/* slider + banner */
.zh-slider-frame { position: relative; border-radius: var(--zs-r); overflow: hidden; background: var(--zs-p3, #f1f5f9); }
.zh-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.zh-slider-track::-webkit-scrollbar { display: none; }
.zh-slide, .zh-banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 8 / 3; overflow: hidden; }
.zh-banner { border-radius: var(--zs-r); aspect-ratio: auto; max-height: 420px; background: var(--zs-p3, #f1f5f9); }
.zh-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zh-banner img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.zh-slide-txt { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(15,23,42,.72)); color: #fff; }
.zh-slide-txt b { font-size: clamp(17px, 2.6vw, 28px); font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.zh-slide-txt em { flex: none; font-style: normal; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--zs-text); font-size: 13.5px; font-weight: 800; }
.zh-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--zs-text); box-shadow: 0 4px 14px rgba(15,23,42,.18); cursor: pointer; opacity: 0; transition: opacity .2s; }
.zh-slider-frame:hover .zh-arrow, .zh-arrow:focus-visible { opacity: 1; }
.zh-arrow.prev { inset-inline-start: 14px; }
.zh-arrow.next { inset-inline-end: 14px; }
.zh-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.zh-slide-txt ~ .zh-dots { bottom: auto; top: 14px; }
.zh-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s, background .2s; }
.zh-dots button.on { width: 22px; background: #fff; }

/* product rows */
.zh-rail { position: relative; }
.zh-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 8px; margin: -2px -2px 0; }
.zh-row::-webkit-scrollbar { display: none; }
.zh-cell { scroll-snap-align: start; min-width: 0; }
.zh-cell > * { height: 100%; }
@media (min-width: 1200px) { .zh-row { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
.zs-t-grid-large .zh-row { grid-auto-columns: minmax(250px, 1fr); }
@media (min-width: 1200px) { .zs-t-grid-large .zh-row { grid-auto-columns: calc((100% - 3 * 14px) / 4); } .zs-t-grid-compact .zh-row { grid-auto-columns: calc((100% - 5 * 14px) / 6); } }
.zs-t-grid-compact .zh-row { grid-auto-columns: minmax(165px, 1fr); }
.zh-rail-btn { position: absolute; top: 38%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--zs-line); background: #fff; color: var(--zs-text); box-shadow: 0 6px 18px rgba(15,23,42,.14); cursor: pointer; z-index: 3; }
.zh-rail-btn.prev { inset-inline-start: -14px; }
.zh-rail-btn.next { inset-inline-end: -14px; }
.zh-rail-btn:hover { border-color: var(--zs-p); color: var(--zs-p); }

/* coupon */
.zh-coupon { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--zs-r); background: linear-gradient(120deg, var(--zs-p3, #f0f9ff), #fff 70%); border: 1.5px dashed color-mix(in srgb, var(--zs-p) 45%, #fff); }
.zh-coupon-off { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 14px; border-radius: calc(var(--zs-r) - 4px); background: var(--zs-p); color: #fff; line-height: 1; }
.zh-coupon-off b { font-size: 26px; font-weight: 800; }
.zh-coupon-off span { margin-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.zh-coupon-txt { flex: 1; min-width: 0; }
.zh-coupon-txt b { display: block; font-size: 17px; font-weight: 800; color: var(--zs-text); }
.zh-coupon-txt small { display: block; margin-top: 3px; color: var(--zs-muted); font-size: 13px; line-height: 1.5; }
.zh-coupon-code { flex: none; display: inline-flex; align-items: stretch; height: 46px; padding: 0; border: 1px solid var(--zs-line); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; font: inherit; }
.zh-coupon-code > span { display: grid; place-items: center; padding: 0 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 800; letter-spacing: .06em; color: var(--zs-text); }
.zh-coupon-code em { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--zs-text); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; transition: background .15s; }
.zh-coupon-code:hover em { background: var(--zs-p); }
.zh-coupon-code.done em { background: #059669; }
@media (max-width: 575.98px) {
    .zh-coupon { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .zh-coupon-off { min-width: 78px; }
    .zh-coupon-off b { font-size: 21px; }
    .zh-coupon-code { width: 100%; }
    .zh-coupon-code > span { flex: 1; }
}

/* badges */
.zh-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.zh-badges li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--zs-r); background: #fff; border: 1px solid var(--zs-line); }
.zh-badges li > i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--zs-p2); color: var(--zs-pd, var(--zs-p)); font-size: 17px; }
.zh-badges b { display: block; font-size: 14.5px; font-weight: 800; color: var(--zs-text); }
.zh-badges small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--zs-muted); line-height: 1.4; }
@media (max-width: 575.98px) {
    .zh-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .zh-badges.n1, .zh-badges.n3 li:first-child { grid-column: 1 / -1; }
    .zh-badges li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
}

/* countdown */
.zh-count { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--zs-r); background: #0f172a; color: #fff; }
.zh-count-txt { flex: 1; min-width: 180px; }
.zh-count-txt b { display: block; font-size: 19px; font-weight: 800; }
.zh-count-txt small { color: #94a3b8; font-size: 13px; }
.zh-count-clock { display: flex; gap: 8px; }
.zh-count-clock span { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.08); }
.zh-count-clock b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.zh-count-clock small { font-size: 11px; color: #94a3b8; }
.zh-count-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--zs-p); color: #fff !important; font-weight: 800; font-size: 14px; }
.zh-count.is-done .zh-count-clock { opacity: .5; }
@media (max-width: 575.98px) { .zh-count { padding: 16px; gap: 14px; } .zh-count-clock { width: 100%; } .zh-count-clock span { flex: 1; min-width: 0; } .zh-count-btn { width: 100%; justify-content: center; } }

/* video */
.zh-video { position: relative; border-radius: var(--zs-r); overflow: hidden; background: #0f172a; }
.zh-video::before { content: ''; position: absolute; inset: -30px; background: var(--poster) center / cover; filter: blur(28px) brightness(.55); }
.zh-video-frame { position: relative; display: block; width: 100%; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; }
.zh-video-frame img, .zh-video-frame iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.zh-play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--zs-p); font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s; }
.zh-play i { margin-inline-start: 4px; }
.zh-video-frame:hover .zh-play { transform: scale(1.06); }
.zh-tt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--zs-r); background: #0f172a; color: #fff !important; }
.zh-tt-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #0f172a; font-size: 20px; }
.zh-tt > span:nth-child(2) { flex: 1; }
.zh-tt b { display: block; font-size: 15px; }
.zh-tt small { color: #94a3b8; font-size: 12.5px; }

/* text + questions */
.zh-text, .zh-faq { padding: 22px 24px; border-radius: var(--zs-r); background: #fff; border: 1px solid var(--zs-line); }
.zh-text p { margin: 8px 0 0; color: #334155; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.zh-faq-list { margin-top: 10px; }
.zh-faq details { border-bottom: 1px solid var(--zs-line); }
.zh-faq details:last-child { border-bottom: 0; }
.zh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 15px; color: var(--zs-text); cursor: pointer; list-style: none; }
.zh-faq summary::-webkit-details-marker { display: none; }
.zh-faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--zs-bg); color: var(--zs-muted); font-size: 11px; transition: transform .2s, background .2s, color .2s; }
.zh-faq details[open] summary i { transform: rotate(45deg); background: var(--zs-p2); color: var(--zs-p); }
.zh-faq details p { margin: 0 0 14px; color: #475569; font-size: 14.5px; line-height: 1.75; white-space: pre-line; }

/* the bottom of the Home tab: on to every product */
.zh-end { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--zs-r); background: var(--zs-p3, #f8fafc); border: 1px solid var(--zs-line); }
.zh-end b { display: block; font-size: 16px; color: var(--zs-text); }
.zh-end small { color: var(--zs-muted); font-size: 13px; }

@media (max-width: 575.98px) {
    .zh { gap: 20px; }
    .zh-head h2, .zh-text h2, .zh-faq h2 { font-size: 17px; }
    .zh-slide { aspect-ratio: 16 / 9; }
    .zh-slide-txt { padding: 40px 14px 14px; }
    .zh-slide-txt em { display: none; }
    .zh-ann { padding: 11px 14px; font-size: 13.5px; }
    .zh-row { grid-auto-columns: 46%; gap: 10px; }
    .zs-t-grid-compact .zh-row { grid-auto-columns: 36%; }
    .zs-t-grid-large .zh-row { grid-auto-columns: 72%; }
    .zh-rail-btn { display: none !important; }
    .zh-text, .zh-faq { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .zh-slider-track { scroll-behavior: auto; } .zh-dots button, .zh-play { transition: none; } }

/* ---------- theme: font, page background, buttons, cards, tabs (Admin → Storefront themes, seller → Theme) ---------- */
.zs.zs-t-font, .zs.zs-t-font h1, .zs.zs-t-font h2, .zs.zs-t-font h3, .zs.zs-t-font .zs-btn, .zs.zs-t-font .zs-tabs button,
.zs.zs-t-font input, .zs.zs-t-font select, .zs.zs-t-font .zx-pc, .zs.zs-t-font .zx-pc * { font-family: var(--zs-font) !important; }
.zs.zs-t-font .fas, .zs.zs-t-font .far, .zs.zs-t-font .fab, .zs.zs-t-font [class^="fa-"], .zs.zs-t-font [class*=" fa-"] { font-family: 'Font Awesome 5 Free' !important; }
.zs.zs-t-font .fab { font-family: 'Font Awesome 5 Brands' !important; }
.zs.zs-t-bg-white { background: #fff; }
.zs.zs-t-bg-white .zs-hero, .zs.zs-t-bg-white .zs-tabs { box-shadow: none; }
.zs.zs-t-bg-tint { background: var(--zs-p3); }
.zs.zs-t-bg-tint .zs-hero, .zs.zs-t-bg-tint .zs-tabs, .zs.zs-t-bg-tint .zh-text, .zs.zs-t-bg-tint .zh-faq, .zs.zs-t-bg-tint .zh-badges li { border-color: color-mix(in srgb, var(--zs-p) 14%, #fff); }
/* buttons */
.zs.zs-t-btn-soft .zs-btn.primary, .zs.zs-t-btn-soft .zh-count-btn { background: var(--zs-p2); border-color: var(--zs-p2); color: var(--zs-pd) !important; }
.zs.zs-t-btn-soft .zs-btn.primary:hover { background: color-mix(in srgb, var(--zs-p) 22%, #fff); border-color: transparent; }
.zs.zs-t-btn-outline .zs-btn.primary { background: transparent; border: 1.5px solid var(--zs-p); color: var(--zs-p) !important; }
.zs.zs-t-btn-outline .zs-btn.primary:hover { background: var(--zs-p); color: #fff !important; }
.zs.zs-t-btn-outline .zh-count-btn { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.zs.zs-t-btn-outline .zs-follow.on, .zs.zs-t-btn-soft .zs-follow.on { background: #fff; }
/* product cards */
.zs .zx-pc { border-radius: var(--zs-r); }
.zs.zs-t-cards-shadow .zx-pc { border-color: transparent !important; box-shadow: 0 10px 28px -16px rgba(15,23,42,.35); }
.zs.zs-t-cards-shadow .zx-pc:hover { box-shadow: 0 16px 34px -16px rgba(15,23,42,.45); }
.zs.zs-t-cards-flat .zx-pc { border-color: transparent !important; box-shadow: none !important; background: transparent; }
.zs.zs-t-cards-flat .zx-pc .zx-pc-media { border-radius: var(--zs-r); overflow: hidden; background: #fff; }
/* tabs */
.zs.zs-t-tabs-underline .zs-tabs { background: transparent; border: 0; border-bottom: 1px solid var(--zs-line); border-radius: 0 !important; padding: 0; gap: 0; }
.zs.zs-t-tabs-underline .zs-tabs button { border-radius: 0 !important; background: transparent; padding: 12px 14px; }
.zs.zs-t-tabs-underline .zs-tabs button.on { background: transparent; color: var(--zs-p); box-shadow: inset 0 -2.5px var(--zs-p); }
.zs.zs-t-tabs-underline .zs-tabs button.on em { background: var(--zs-p2); color: var(--zs-pd); }
.zs.zs-t-bg-soft.zs-t-tabs-underline .zs-tabs, .zs.zs-t-bg-tint.zs-t-tabs-underline .zs-tabs { background: transparent; }
