/* Store Landing theme — tokens */
:root {
	--paper: #F7F8F6;
	--paper-2: #EEF0EC;
	--ink: #17201B;
	--ink-2: #5B6660;
	--line: #D7DCD6;
	--green: #0F5C3A;
	--green-soft: #DDEEE3;
	--tag: #F5C93B;
	--tag-ink: #3B2E00;
	--font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1120px;
	--gutter: 20px;
	--radius: 6px;
	--measure: 68ch;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #131715; --paper-2: #1B211D; --ink: #ECEFEA; --ink-2: #A3ACA5; --line: #2C332E;
		--green: #6CC59A; --green-soft: #17322A; --tag: #E9BE2F; --tag-ink: #2A2100;
	}
}
:root[data-theme="dark"] {
	--paper: #131715; --paper-2: #1B211D; --ink: #ECEFEA; --ink-2: #A3ACA5; --line: #2C332E;
	--green: #6CC59A; --green-soft: #17322A; --tag: #E9BE2F; --tag-ink: #2A2100;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font); font-size: 17px; line-height: 1.55;
	font-variation-settings: "opsz" 14, "wdth" 100;
	font-optical-sizing: auto;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-variation-settings: "opsz" 96, "wdth" 100; }
h2 { font-size: 1.55rem; margin-top: 2.2em; font-variation-settings: "opsz" 48, "wdth" 96; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { font-weight: 700; }

/* Buttons */
.btn {
	display: inline-block; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: var(--radius);
	background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-big { padding: 14px 22px; font-size: 1.05rem; }

/* Header / footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.wordmark { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "wdth" 90; }
.site-search { display: flex; flex: 1 1 260px; max-width: 420px; }
.site-search input, .hero-search input {
	flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); color: var(--ink);
}
.site-search button, .hero-search button { font: inherit; font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--ink-2); font-size: .92rem; }
.site-foot-in { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.site-foot p { max-width: 60ch; margin: 0; }

/* Home */
.home-hero { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.home-hero h1 { max-width: 22ch; margin-bottom: .6em; }
.hero-search { display: flex; max-width: 560px; }
.hero-search input { font-size: 1.1rem; padding: 12px 14px; }
.hero-search button { padding: 12px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips a, .chip { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--paper); }
.chips a:hover, .chip:hover { border-color: var(--ink); }
.listing { padding-top: 32px; }
.listing h2:first-child, .listing h1 { margin-top: 0; }
.lede { max-width: var(--measure); color: var(--ink-2); }
.empty { color: var(--ink-2); }

/* Store grid */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 24px; }
.store-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.store-card:hover { border-color: var(--ink); color: inherit; }
.store-card-logo { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.store-card-logo img { width: 48px; height: 48px; object-fit: contain; }
.store-card-initial, .store-logo-initial { font-weight: 800; font-size: 1.5rem; color: var(--ink-2); }
.store-card-text { display: flex; flex-direction: column; min-width: 0; }
.store-card-name { font-weight: 700; }
.store-card-tagline { font-size: .9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.store-card-offers { font-size: .85rem; color: var(--green); font-weight: 600; margin-top: 2px; }
.pagination { margin: 24px 0; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Store hero */
.store-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.store-hero-in { display: grid; grid-template-columns: 160px 1fr auto; gap: 28px; align-items: center; }
.store-logo { width: 160px; height: 160px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.store-logo img { width: 128px; height: 128px; object-fit: contain; }
.store-name { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.025em; font-variation-settings: "opsz" 96, "wdth" 110; line-height: 1; }
.store-tagline { font-size: 1.15rem; color: var(--ink-2); margin: .5em 0 .6em; max-width: 48ch; }
.store-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: .95rem; }
.store-line .domain { font-weight: 600; margin-right: 6px; }
.store-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-cta-offers { font-weight: 600; color: var(--green); }

/* Store body */
.store-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 36px; }
.store-content > h2:first-child { margin-top: 0; }
.store-updated { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.store-aside { position: sticky; top: 20px; align-self: start; }
.glance { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; background: var(--paper); }
.glance h2 { font-size: 1rem; margin: 0 0 .6em; font-variation-settings: "opsz" 14, "wdth" 100; }
.glance dl { margin: 0; }
.glance dl div { padding: 8px 0; border-top: 1px solid var(--line); }
.glance dt { font-size: .82rem; color: var(--ink-2); }
.glance dd { margin: 2px 0 0; font-size: .95rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 5px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.aside-cta { width: 100%; text-align: center; }
.related { margin-top: 56px; }

/* Tickets — the one bold element */
.tickets { margin: 2em 0 2.4em; max-width: none; }
.tickets h2 { margin-top: 0; }
.tickets-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }
.ticket {
	display: grid; grid-template-columns: minmax(0, 1fr) 168px; margin-bottom: 14px;
	background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; position: relative;
}
.ticket-body { padding: 16px 18px; }
.ticket-title { margin: 0 0 .3em; font-size: 1.2rem; font-variation-settings: "opsz" 48, "wdth" 96; }
.ticket-desc { margin: 0 0 .5em; color: var(--ink-2); font-size: .95rem; }
.ticket-meta { margin: 0; font-size: .85rem; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.ticket-verified { color: var(--green); font-weight: 700; }
.ticket-verified::before { content: "✓ "; }
.ticket-stub { position: relative; border-left: 2px dashed var(--ink); display: grid; }
/* perforation notches */
.ticket-stub::before, .ticket-stub::after {
	content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--paper); border: 1.5px solid var(--ink);
}
.ticket-stub::before { top: -11px; clip-path: inset(50% 0 0 0); }
.ticket-stub::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.ticket.has-code .ticket-stub { background: var(--tag); color: var(--tag-ink); }
.ticket-code, .ticket-deal {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 100%; height: 100%; min-height: 96px; padding: 12px; border: 0; background: transparent; color: inherit;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.ticket-code-label { font-size: .8rem; font-weight: 600; opacity: .8; }
.ticket-code-value { font-size: 1.25rem; letter-spacing: .06em; font-variation-settings: "wdth" 90; }
.ticket-code.is-copied .ticket-code-label { opacity: 1; }
.ticket-deal { font-size: 1.05rem; }
.ticket-deal:hover, .ticket-code:hover { background: rgba(0,0,0,.06); color: inherit; }

/* Featured products */
.products { margin: 0 0 2.4em; max-width: none; }
.products h2 { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: inherit; }
.product:hover { border-color: var(--ink); }
.product-img { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 4px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-weight: 700; margin-top: auto; }
.product-price s { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.product-stock { font-size: .8rem; color: var(--ink-2); }
.product-check { margin-top: auto; align-self: flex-start; font-size: .88rem; font-weight: 600; padding: 4px 10px; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.product:hover .product-check { background: var(--ink); color: var(--paper); }

/* Fallback shortcode markup (plugin default) gets the same look in this theme */
.sl-coupons .sl-coupon { border: 1.5px solid var(--ink); border-radius: 8px; padding: 16px; margin-bottom: 12px; }

@media (max-width: 900px) {
	.store-body { grid-template-columns: 1fr; gap: 28px; }
	.store-aside { position: static; }
	.store-hero-in { grid-template-columns: 96px 1fr; }
	.store-logo { width: 96px; height: 96px; }
	.store-logo img { width: 76px; height: 76px; }
	.store-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.store-hero { padding: 28px 0 22px; }
	.store-hero-in { gap: 16px; }
	.ticket { grid-template-columns: 1fr; }
	.ticket-stub { border-left: 0; border-top: 2px dashed var(--ink); }
	.ticket-stub::before, .ticket-stub::after { top: -11px; bottom: auto; }
	.ticket-stub::before { left: -11px; clip-path: inset(0 0 0 50%); }
	.ticket-stub::after { left: auto; right: -11px; clip-path: inset(0 50% 0 0); }
	.ticket-code, .ticket-deal { min-height: 64px; flex-direction: row; gap: 12px; }
	.site-head-in { gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
	.ticket-code-value { transition: transform .15s ease; }
	.ticket-code.is-copied .ticket-code-value { transform: scale(1.06); }
}
