/* =============================================================================
   DIGITAL TIENDA — CORE TEMPLATE STYLES
   page.php · archive.php · search.php · 404.php
   Loaded sitewide from inc/enqueue.php
   =============================================================================
   These four templates previously shipped as 9–16 lines of unstyled markup.
   The blog (index.php, single.php, category.php) had a full design; everything
   else fell back to browser defaults. This closes that gap using the same
   navy/blue palette so the whole site reads as one design.
   ============================================================================= */

.dt-page, .dt-arc, .dt-404 {
	--navy: #0f172a;
	--blue: #2563eb;
	--blue-dark: #1d4ed8;
	--teal: #0f9d92;
	--text: #475569;
	--muted: #64748b;
	--line: #e2e8f0;
	--soft: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--text);
	background: #fff;
}

.dt-page *, .dt-arc *, .dt-404 * { box-sizing: border-box; }

.dt-page__shell, .dt-arc__shell, .dt-404__shell {
	width: min(1200px, calc(100% - 40px));
	margin-inline: auto;
}

/* ─── PAGE ─────────────────────────────────────────────────── */
.dt-page__header {
	background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 58%, #effcf9 100%);
	border-bottom: 1px solid var(--line);
	padding: 54px 0;
	margin-bottom: 44px;
}
.dt-page__title {
	font-size: clamp(28px, 4vw, 40px) !important;
	line-height: 1.12 !important;
	letter-spacing: -.03em !important;
	color: var(--navy) !important;
	font-weight: 800 !important;
	margin: 0 !important;
}
.dt-page__thumb { margin-bottom: 34px; }
.dt-page__thumb img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
}
.dt-page__content {
    max-width: min(1180px, calc(100% - 36px));
    font-size: 17px;
    line-height: 1.8;
    padding-bottom: 60px;
}
.dt-page__content > *:first-child { margin-top: 0; }
.dt-page__content h2 { font-size: 28px; color: var(--navy); margin: 40px 0 14px; letter-spacing: -.015em; }
.dt-page__content h3 { font-size: 22px; color: var(--navy); margin: 32px 0 12px; }
.dt-page__content p { margin: 0 0 20px; }
.dt-page__content a { color: var(--blue); text-underline-offset: 3px; }
.dt-page__content ul, .dt-page__content ol { padding-left: 24px; margin: 0 0 20px; }
.dt-page__content li { margin-bottom: 8px; }
.dt-page__content li::marker { color: var(--blue); }
.dt-page__content img { border-radius: 10px; }
.dt-page__content blockquote {
	border-left: 4px solid var(--teal);
	background: var(--soft);
	margin: 28px 0;
	padding: 18px 22px;
	border-radius: 0 10px 10px 0;
}
.dt-page__content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.dt-page__content th { background: var(--soft); color: var(--navy); text-align: left; }
.dt-page__content th, .dt-page__content td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
/* Full-bleed pages (About, Terms, Cart, Checkout) supply their own layout */
.dt-page--bleed .dt-page__article { display: block; }

/* ─── ARCHIVE / SEARCH ─────────────────────────────────────── */
.dt-arc__hero {
	background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 58%, #effcf9 100%);
	border-bottom: 1px solid var(--line);
	padding: 52px 0;
}
.dt-arc__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 12px;
}
.dt-arc__title {
	font-size: clamp(26px, 4vw, 40px) !important;
	line-height: 1.1 !important;
	letter-spacing: -.03em !important;
	color: var(--navy) !important;
	font-weight: 800 !important;
	margin: 0 !important;
}
.dt-arc__desc { max-width: 700px; margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.dt-arc__desc p { margin: 0; }
.dt-arc__wrap { padding: 44px 0 70px; }

.dt-arc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dt-arc__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.dt-arc__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.dt-arc__media { display: block; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.dt-arc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-arc__media-empty {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	color: #94a3b8; font-weight: 800; letter-spacing: .1em;
}
.dt-arc__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dt-arc__cat {
	font-size: 10px; font-weight: 800; letter-spacing: .09em;
	text-transform: uppercase; color: var(--teal);
}
.dt-arc__card-title { font-size: 17px !important; line-height: 1.35 !important; margin: 0 !important; font-weight: 750 !important; }
.dt-arc__card-title a { color: var(--navy); text-decoration: none; }
.dt-arc__card-title a:hover { color: var(--blue); }
.dt-arc__excerpt { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.dt-arc__date { font-size: 12px; color: var(--muted); margin-top: auto; }
.dt-arc__price { font-size: 16px; font-weight: 700; color: var(--navy); }

.dt-arc__empty { text-align: center; padding: 70px 20px; }
.dt-arc__empty h2 { font-size: 24px; color: var(--navy); margin: 0 0 10px; }
.dt-arc__empty p { color: var(--muted); margin: 0 0 22px; }
.dt-arc__btn, .dt-404__btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 26px; border-radius: 10px;
	background: var(--navy); color: #fff !important;
	text-decoration: none !important;
	font-size: 14px; font-weight: 750;
	transition: background .2s ease, transform .2s ease;
}
.dt-arc__btn:hover, .dt-404__btn:hover { background: var(--blue); transform: translateY(-1px); }

/* Pagination */
.dt-arc .navigation.pagination { margin-top: 42px; }
.dt-arc .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dt-arc .page-numbers {
	min-width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--line); border-radius: 9px;
	color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 650;
	background: #fff;
}
.dt-arc .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.dt-arc .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Search form */
.dt-search__form { display: flex; gap: 10px; margin-top: 22px; max-width: 520px; }
.dt-search__form input[type="search"],
.dt-404__form input[type="search"] {
	flex: 1; min-width: 0;
	padding: 13px 16px;
	border: 1.5px solid #d8e0ea; border-radius: 10px;
	font-size: 15px; font-family: inherit; color: var(--navy);
	background: #fff; outline: none;
	transition: border-color .18s, box-shadow .18s;
	-webkit-appearance: none; appearance: none;
}
.dt-search__form input:focus, .dt-404__form input:focus {
	border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}
.dt-search__form button, .dt-404__form button {
	padding: 13px 24px; border: 0; border-radius: 10px;
	background: var(--navy); color: #fff;
	font-size: 14px; font-weight: 750; font-family: inherit;
	cursor: pointer; white-space: nowrap;
	-webkit-appearance: none; appearance: none;
	transition: background .2s ease;
}
.dt-search__form button:hover, .dt-404__form button:hover { background: var(--blue); }

/* ─── 404 ──────────────────────────────────────────────────── */
.dt-404 { padding: 70px 0 80px; text-align: center; }
.dt-404__code {
	display: block;
	font-size: clamp(64px, 12vw, 110px);
	font-weight: 900; line-height: 1;
	letter-spacing: -.05em;
	background: linear-gradient(135deg, var(--blue), var(--teal));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--blue);
	margin-bottom: 14px;
}
.dt-404__title { font-size: clamp(24px, 4vw, 34px) !important; color: var(--navy) !important; font-weight: 800 !important; margin: 0 0 12px !important; letter-spacing: -.02em !important; }
.dt-404__text { max-width: 540px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.dt-404__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 22px; }
.dt-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dt-404__btn--ghost { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line); }
.dt-404__btn--ghost:hover { background: var(--soft); color: var(--navy) !important; }
.dt-404__suggested { margin-top: 62px; text-align: left; }
.dt-404__suggested h2 { font-size: 22px; color: var(--navy); margin: 0 0 22px; text-align: center; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1000px) {
	.dt-arc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 720px) {
	.dt-page__header { padding: 38px 0; margin-bottom: 30px; }
	.dt-arc__hero { padding: 36px 0; }
	.dt-arc__wrap { padding: 30px 0 52px; }
	.dt-page__content { font-size: 16px; }
	.dt-page__content h2 { font-size: 24px; }
	.dt-404 { padding: 46px 0 60px; }
	.dt-search__form, .dt-404__form { flex-direction: column; }
	.dt-search__form button, .dt-404__form button { width: 100%; }
	.dt-404__actions { flex-direction: column; }
	.dt-404__btn { width: 100%; }
}
@media (max-width: 520px) {
	.dt-page__shell, .dt-arc__shell, .dt-404__shell { width: calc(100% - 28px); }
	.dt-arc__grid { grid-template-columns: 1fr; }
	/* 16px stops iOS zooming the page on field focus */
	.dt-search__form input[type="search"], .dt-404__form input[type="search"] { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.dt-arc__card, .dt-arc__btn, .dt-404__btn { transition: none; }
	.dt-arc__card:hover, .dt-arc__btn:hover, .dt-404__btn:hover { transform: none; }
}
