/*
Theme Name: YumYak
Theme URI: https://www.yumyak.ca/
Author: YumYak
Author URI: https://www.yumyak.ca/
Description: Editorial Toronto food guide theme. White and cream palette with orange accents, Source Sans 3 and Lora typography, slim SVG iconography. Includes Restaurant and Event custom post types, a restaurant radar archive with filters, ad placement slots, and a partnership submission section.
Version: 4.0.41
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yumyak
Tags: food, restaurant-guide, editorial, translation-ready, custom-menu, featured-images, full-width-template
*/

/* -------------------------------------------------------------------------
 * WordPress-specific additions. The demo design itself lives in
 * assets/css/main.css (extracted verbatim from the frozen demo).
 * ------------------------------------------------------------------------- */

/* The frozen demo was a single-page app that hid inactive "pages" with
 * .page{display:none}. WordPress renders real pages, so never hide them. */
article.page,
.page {
	display: block;
}

/* Current nav item (rendered as <a class="active"> by yumyak_nav_links()). */
.navlinks a.active {
	background: var(--cream);
	color: var(--rust);
}

/* Back-to-top uses the orange horizontal arrow per the frozen design. */
.back-top {
	color: var(--orange);
}

/* Screen-reader text (WordPress standard). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Image fallback slot when a post has no featured image yet. */
.yumyak-no-image {
	background: var(--soft);
	min-height: 160px;
}

/* Keep demo spacing for the WP-generated footer logo image. */
img.footer-logo {
	max-width: 210px;
	height: auto;
	display: block;
}

/* Generic archive list (archive.php fallback). */
.archive-list {
	display: grid;
	gap: 14px;
}
.archive-item {
	background: var(--paper);
	padding: 22px 24px;
	border: 1px solid var(--line);
}
.archive-item h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
}
.archive-item p {
	color: var(--muted);
	margin: 0 0 10px;
}

/* WordPress pagination. */
.nav-links {
	display: flex;
	gap: 10px;
	margin-top: 26px;
}
.nav-links a,
.nav-links span {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
.nav-links .current {
	background: var(--cream);
	color: var(--rust);
}

/* ============ Shop page (v4.0.19) ============ */
.shop-card-media { position: relative; }
.shop-price-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	line-height: 1;
	transform: rotate(-4deg);
	filter: drop-shadow(0 3px 5px rgba(0,0,0,.28));
	z-index: 3;
}
.shop-price-badge .pb-from {
	display: inline-block;
	background: #FFC107;
	color: #111;
	font-weight: 900;
	font-style: italic;
	font-size: 13px;
	padding: 4px 12px;
	transform: rotate(-3deg);
	position: relative;
	z-index: 2;
	margin-left: 2px;
}
.shop-price-badge .pb-num {
	display: block;
	background: #E31E24;
	color: #fff;
	font-weight: 900;
	font-style: italic;
	font-size: 24px;
	padding: 7px 14px 9px;
	letter-spacing: .5px;
	margin-top: -4px;
	position: relative;
}
.shop-price-badge .pb-num::after {
	content: "";
	position: absolute;
	left: 14px;
	bottom: -8px;
	border-style: solid;
	border-width: 8px 10px 0 0;
	border-color: #a31217 transparent transparent transparent;
}
.shop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-tagpill {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	white-space: nowrap;
}
.shop-tagpill.tag-green { background: #2E7D32; }
.shop-tagpill.tag-blue { background: #1565C0; }
.shop-tagpill.tag-orange { background: #E8632B; }
.shop-tagpill.tag-purple { background: #7B1FA2; }
.shop-tagpill.tag-red { background: #C62828; }
.shop-rating { display: flex; align-items: center; gap: 6px; }
.shop-rating-num { font-weight: 800; font-size: 14px; }
.shop-reviews { font-size: 12px; color: #8a7a63; }
.shop-bought { font-size: 12px; color: #2E7D32; font-weight: 700; margin: 0; }
.shop-stars i { color: #F5A623; }
.shop-stars i.off { color: #e6dcc8; }
.shop-stars i.half {
	background: linear-gradient(90deg, #F5A623 50%, #e6dcc8 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.shop-info { border-top: 1px dashed #eee4d3; padding-top: 8px; }
.shop-info summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	color: #1565C0;
	list-style: none;
}
.shop-info summary::-webkit-details-marker { display: none; }
.shop-info summary::before { content: "+ "; }
.shop-info[open] summary::before { content: "- "; }
.shop-info-body p { font-size: 13px; color: #5c554a; margin: 6px 0; }
.shop-info-body p strong { color: #1c1c1c; }
.shop-intro .shop-disclosure {
	font-size: 13px;
	color: #8a7a63;
	font-style: italic;
	max-width: 640px;
}
.shop-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}
.shop-nav a {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid #e3d9c6;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #1c1c1c;
	text-decoration: none;
	background: #fff;
}
.shop-nav a:hover {
	background: #E8632B;
	border-color: #E8632B;
	color: #fff;
}
.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}
.shop-card {
	background: #fff;
	border: 1px solid #eee4d3;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.shop-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.shop-card-media {
	aspect-ratio: 1/1;
	overflow: hidden;
	background: #f7f1e5;
}
.shop-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.shop-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.shop-tag {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #E8632B;
}
.shop-card-body h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	line-height: 1.3;
	margin: 0;
}
.shop-stars i {
	font-style: normal;
	color: #E8632B;
	font-size: 15px;
}
.shop-stars i.off { color: #ddd0ba; }
.shop-stars i.half {
	background: linear-gradient(90deg, #E8632B 50%, #ddd0ba 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.shop-verdict {
	font-size: 14px;
	color: #5c554a;
	margin: 0;
	flex: 1;
}
.shop-btn-img { display: inline-block; text-decoration: none; border: 0; }
.shop-btn-img img { display: block; width: 190px; height: auto; }
.shop-btn-img.small img { width: 120px; }
.shop-btn-text {
	display: inline-block;
	background: #C62828;
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
}
.shop-btn-text:hover { background: #a81f1f; color: #fff; }
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 1px;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	margin-top: 6px;
}
.shop-btn:hover { background: #a81f1f; color: #fff; }
.shop-btn.small { padding: 8px 16px; font-size: 13px; }
.shop-table-wrap { overflow-x: auto; margin-bottom: 36px; }
.shop-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	border: 1px solid #eee4d3;
	border-radius: 12px;
	overflow: hidden;
}
.shop-table caption {
	text-align: left;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	padding: 14px 4px;
}
.shop-table th, .shop-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f0e8d8;
	text-align: left;
	vertical-align: middle;
}
.shop-table thead th {
	background: #faf6ec;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #8a7a63;
}
.shop-faq details {
	border: 1px solid #eee4d3;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 12px;
	background: #fff;
}
.shop-faq summary {
	font-weight: 700;
	cursor: pointer;
	font-size: 16px;
}
.shop-faq details p { margin: 10px 0 0; color: #5c554a; font-size: 14px; }
@media (max-width: 640px) {
	.shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.shop-card-body { padding: 12px; }
	.shop-card-body h3 { font-size: 15px; }
}
