/* DigitalPass Store — estilo App Store / Hoy */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--dp-bg: #f5f5f7;
	--dp-ink: #1d1d1f;
	--dp-muted: #6e6e73;
	--dp-line: rgba(0, 0, 0, 0.08);
	--dp-accent: #1d1d1f;
	--dp-accent-hover: #000;
	--dp-nav-h: 52px;
	--dp-max: 1100px;
	--dp-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--dp-font: 'Manrope', 'Helvetica Neue', Helvetica, sans-serif;
	--dp-radius-app: 22%;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.digital-body {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--dp-bg) !important;
	color: var(--dp-ink) !important;
	font-family: var(--dp-font) !important;
	font-size: 17px;
	letter-spacing: -0.02em;
	-webkit-font-smoothing: antialiased;
}

.digital-main {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	overflow-x: hidden;
	background: transparent;
}

.dp-store {
	min-height: 100vh;
	padding-top: var(--dp-nav-h);
	padding-bottom: 40px;
	font-family: var(--dp-font);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.dp-store-wrap {
	max-width: var(--dp-max);
	margin: 0 auto;
	padding: 0 22px;
}

/* ——— Nav ——— */
.dp-store-nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--dp-nav-h);
	background: rgba(245, 245, 247, 0.82);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid transparent;
}

.dp-store-nav.is-scrolled {
	border-bottom-color: var(--dp-line);
	background: rgba(255, 255, 255, 0.86);
}

.dp-store-nav-inner {
	max-width: var(--dp-max);
	margin: 0 auto;
	padding: 0 22px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 18px;
}

.dp-store-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.03em;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
}

.dp-store-brand .dp-brand-mark {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	display: block;
	object-fit: cover;
}

.dp-store-nav-tabs {
	display: flex;
	gap: 16px;
}

.dp-store-nav-tabs a {
	font-size: 13px;
	font-weight: 650;
	color: var(--dp-muted);
}

.dp-store-nav-tabs a.is-active,
.dp-store-nav-tabs a:hover {
	color: var(--dp-ink);
}

.dp-store-search {
	margin-left: auto;
	position: relative;
	width: min(280px, 36vw);
}

.dp-store-search-ico {
	position: absolute;
	left: 10px;
	top: 50%;
	width: 14px;
	height: 14px;
	transform: translateY(-50%);
	color: var(--dp-muted);
	pointer-events: none;
}

.dp-store-search-input {
	width: 100%;
	border: 0;
	appearance: none;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	padding: 8px 12px 8px 30px;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--dp-ink);
}

.dp-store-search-input:focus {
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.12);
}

.dp-store-nav-actions { flex-shrink: 0; }

.dp-store-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dp-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
}

.dp-store-pill,
a.dp-store-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 980px;
	background: var(--dp-ink) !important;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.15s;
}

.dp-store-pill:hover,
a.dp-store-pill:hover {
	background: var(--dp-accent-hover) !important;
	transform: translateY(-1px);
}

.dp-store-pill-lg {
	font-size: 15px;
	padding: 12px 22px;
}

.dp-store-query {
	padding: 28px 22px 0;
}

.dp-store-query h1 {
	margin: 0 0 4px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.dp-store-query p {
	margin: 0;
	color: var(--dp-muted);
	font-size: 14px;
}

.dp-store-query a {
	color: var(--dp-ink);
	font-weight: 700;
	text-decoration: underline;
}

/* ——— Today story ——— */
.dp-store-today {
	padding-top: 20px;
}

.dp-store-today-date {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--dp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dp-store-today-label {
	margin: 2px 0 14px;
	font-size: clamp(36px, 7vw, 48px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
}

.dp-store-story {
	display: block;
	max-width: var(--dp-max);
	margin: 0 auto;
	padding: 0 22px;
}

.dp-store-story-media {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	min-height: min(72vh, 560px);
	background: var(--story, #1d1d1f);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
	transform: translateZ(0);
	transition: transform 0.35s var(--dp-ease), box-shadow 0.35s var(--dp-ease);
}

.dp-store-story:hover .dp-store-story-media {
	transform: scale(1.01);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.dp-store-story-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.05);
}

.dp-store-story-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 35%, rgba(0, 0, 0, 0.78) 100%),
		linear-gradient(90deg, color-mix(in srgb, var(--story) 50%, transparent), transparent 60%);
}

.dp-store-story-content {
	position: absolute;
	inset: auto 0 0;
	padding: 28px 28px 24px;
	color: #fff;
	z-index: 1;
}

.dp-store-story-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
	opacity: 0.95;
}

.dp-store-story-title {
	margin: 0 0 8px;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
	max-width: 14ch;
}

.dp-store-story-copy {
	margin: 0 0 20px;
	max-width: 36ch;
	font-size: 15px;
	line-height: 1.4;
	opacity: 0.92;
	font-weight: 500;
}

.dp-store-story-app {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.dp-store-story-app-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.dp-store-story-app-meta strong {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dp-store-story-app-meta small {
	font-size: 12px;
	opacity: 0.8;
}

/* ——— Icons ——— */
.dp-store-icon-lg,
.dp-store-icon-md,
.dp-store-icon-sm,
.dp-store-icon-xl {
	border-radius: var(--dp-radius-app);
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
}

.dp-store-icon-lg { width: 52px; height: 52px; }
.dp-store-icon-md { width: 44px; height: 44px; }
.dp-store-icon-sm { width: 40px; height: 40px; }
.dp-store-icon-xl { width: 64px; height: 64px; }

.dp-store-icon-lg img,
.dp-store-icon-md img,
.dp-store-icon-sm img,
.dp-store-icon-xl img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dp-store-icon-lg span,
.dp-store-icon-md span,
.dp-store-icon-sm span,
.dp-store-icon-xl span {
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
}

.dp-store-icon-xl span { font-size: 20px; }

.dp-store-get-btn,
a .dp-store-get-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	padding: 7px 14px;
	border-radius: 980px;
	background: #fff !important;
	color: var(--dp-ink) !important;
	font-size: 13px;
	font-weight: 800;
	flex-shrink: 0;
	transition: transform 0.15s var(--dp-ease);
}

.dp-store-get-btn:hover { transform: scale(1.04); }

.dp-store-get-btn-sm {
	min-width: 52px;
	padding: 5px 12px;
	font-size: 12px;
}

.dp-store-card-foot .dp-store-get-btn-sm,
.dp-store-chart-row .dp-store-get-btn {
	background: rgba(29, 29, 31, 0.08) !important;
	color: var(--dp-ink) !important;
}

.dp-store-story-app .dp-store-get-btn,
.dp-store-story-sm .dp-store-get-btn-sm {
	background: #fff !important;
	color: var(--dp-ink) !important;
}

/* ——— Small stories ——— */
.dp-store-stories-row {
	padding: 18px 0 8px;
}

.dp-store-stories-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.dp-store-story-sm {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	min-height: 280px;
	background: var(--story, #1d1d1f);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s var(--dp-ease);
}

.dp-store-story-sm:hover { transform: translateY(-4px); }

.dp-store-story-sm-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dp-store-story-sm-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72) 100%);
}

.dp-store-story-sm-body {
	position: absolute;
	inset: auto 0 0;
	padding: 20px;
	color: #fff;
	z-index: 1;
}

.dp-store-story-sm-body > span {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.dp-store-story-sm-body h3 {
	margin: 6px 0 14px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.dp-store-story-sm-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ——— Collection rail ——— */
.dp-store-collection {
	padding: 36px 0 12px;
}

.dp-store-collection-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.dp-store-collection-kicker {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dp-muted);
}

.dp-store-collection-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.dp-store-rail {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 6px 22px 24px;
	max-width: var(--dp-max);
	margin: 0 auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}

.dp-store-rail::-webkit-scrollbar { display: none; }
.dp-store-rail.is-dragging { cursor: grabbing; }

.dp-store-card {
	flex: 0 0 auto;
	width: min(280px, 78vw);
	scroll-snap-align: start;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--dp-line);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s var(--dp-ease), box-shadow 0.3s var(--dp-ease);
}

.dp-store-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.dp-store-card-art {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.dp-store-card-art img {
	width: 100px;
	height: 100px;
	border-radius: var(--dp-radius-app);
	object-fit: cover;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dp-store-card-letter {
	font-size: 42px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.04em;
}

.dp-store-card-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 14px;
}

.dp-store-card-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.dp-store-card-text strong {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dp-store-card-text small {
	font-size: 11px;
	color: var(--dp-muted);
	font-weight: 600;
}

/* ——— Charts ——— */
.dp-store-charts {
	padding: 28px 0 20px;
}

.dp-store-sorts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dp-store-chip {
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 980px;
	background: rgba(0, 0, 0, 0.05);
	color: var(--dp-ink);
}

.dp-store-chip.is-active {
	background: var(--dp-ink);
	color: #fff;
}

.dp-store-chart-panel {
	background: #fff;
	border: 1px solid var(--dp-line);
	border-radius: 20px;
	overflow: hidden;
}

.dp-store-chart-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--dp-line);
	transition: background 0.15s;
}

.dp-store-chart-row:last-child { border-bottom: 0; }
.dp-store-chart-row:hover { background: rgba(0, 0, 0, 0.02); }

.dp-store-chart-num {
	width: 22px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--dp-muted);
	text-align: center;
}

.dp-store-chart-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dp-store-chart-meta strong {
	font-size: 15px;
	font-weight: 750;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dp-store-chart-meta small {
	font-size: 12px;
	color: var(--dp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dp-store-chart-rating {
	font-size: 11px;
	font-weight: 700;
	color: var(--dp-muted);
}

.dp-store-empty {
	padding: 64px 22px;
	text-align: center;
}

.dp-store-empty h2 {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dp-store-empty p {
	margin: 0 0 20px;
	color: var(--dp-muted);
}

/* ——— CTA / Footer ——— */
.dp-store-cta {
	margin: 28px 22px 0;
}

.dp-store-cta-inner {
	max-width: var(--dp-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 28px 28px;
	border-radius: 24px;
	background: var(--dp-ink);
	color: #fff;
}

.dp-store-cta h2 {
	margin: 0 0 6px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.dp-store-cta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
	max-width: 34rem;
}

.dp-store-cta .dp-store-pill {
	background: #fff !important;
	color: var(--dp-ink) !important;
}

.dp-store-footer {
	margin-top: 36px;
	padding: 24px 0 8px;
}

.dp-store-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dp-store-footer-legal {
	display: flex;
	gap: 16px;
}

.dp-store-footer-legal a {
	font-size: 13px;
	font-weight: 600;
	color: var(--dp-muted);
}

.dp-store-footer-legal a:hover { color: var(--dp-ink); }

.dp-store-footer p {
	margin: 0;
	width: 100%;
	font-size: 12px;
	color: var(--dp-muted);
}

/* ——— Responsive ——— */
@media (max-width: 820px) {
	.dp-store-nav-tabs { display: none; }

	.dp-store-stories-grid {
		grid-template-columns: 1fr;
	}

	.dp-store-story-media {
		min-height: 420px;
	}
}

@media (max-width: 560px) {
	.dp-store-search {
		width: min(150px, 38vw);
	}

	.dp-store-cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
