/* ==========================================================================
   Joker City – shared storefront design (redesign plan, stages 2–3)
   Layered on Storefront. Category presets live in preset.css.
   ========================================================================== */

:root {
	--jc-ink: #121316;
	--jc-ink-2: #2b2e35;
	--jc-muted: #5b606b;
	--jc-line: #e2e4e8;
	--jc-control-line: #c9ccd3;   /* borders of touchable controls */
	--jc-paper: #ffffff;
	--jc-wash: #f4f5f7;
	--jc-brand: #e8283c;          /* decorative accent only */
	--jc-focus: #2563eb;
	--jc-ok: #137a3a;
	--jc-radius: 10px;
	--jc-gutter: clamp(16px, 3vw, 40px);
	/* Content width: 1400px up to 1600px screens, then 88% of the screen up to 2200px
	   (owner 2026-11-15: on his ~2500px screen the 1400px column left wide empty sides). */
	--jc-max: clamp(1400px, 88vw, 2200px);
	--jc-font: "Archivo", "Source Sans Pro", system-ui, sans-serif;
	--jc-header-h: 72px;
}

html { scroll-padding-top: 1rem; }
/* Storefront's overflow-x:hidden makes .site a scroll container, which disables position:sticky site-wide. */
.site { overflow-x: clip; }
body {
	font-family: var(--jc-font);
	color: var(--jc-ink);
	background: var(--jc-paper);
	overflow-x: clip;
}
h1, h2, h3, h4, .site-title { font-family: var(--jc-font); color: var(--jc-ink); letter-spacing: -0.01em; }
a { color: var(--jc-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
	outline: 3px solid var(--jc-focus);
	outline-offset: 2px;
}

/* Fluid container ------------------------------------------------------- */
.col-full {
	box-sizing: border-box;
	max-width: var(--jc-max);
	padding-left: var(--jc-gutter);
	padding-right: var(--jc-gutter);
	margin-left: auto;
	margin-right: auto;
}
.site-content > .col-full,
.site-main { overflow: visible; }
.right-sidebar .content-area, .left-sidebar .content-area { width: 100%; float: none; margin: 0; }
.widget-area, #secondary { display: none; }

/* Utility bar ----------------------------------------------------------- */
.jc-utility { background: var(--jc-ink); color: #d6d8dd; font-size: 13px; }
.jc-utility .col-full { display: flex; justify-content: flex-end; min-height: 34px; align-items: center; }
.jc-utility ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.jc-utility a { color: #e9eaee; text-decoration: none; }
.jc-utility a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 767px) { .jc-utility { display: none; } }

/* Header: one row ------------------------------------------------------- */
.site-header {
	padding: 0 !important;
	margin-bottom: 0 !important;
	background: var(--jc-paper) !important;
	border-bottom: 1px solid var(--jc-line);
	position: relative;
	z-index: 50;
}
.site-header > .col-full {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 32px);
	min-height: var(--jc-header-h);
}
.site-header .site-branding,
.site-header .site-search,
.site-header .main-navigation,
.site-header .site-header-cart {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	clear: none !important;
}
.site-header .site-branding { flex: 0 0 auto; line-height: 0; }
.site-header .custom-logo-link img { width: auto !important; max-width: none !important; height: 38px; }   /* 0.7: 48px read too big (user) */
.site-header .site-branding .site-title { font-size: 1.6rem; font-weight: 800; margin: 0; line-height: 1; }

.site-header .main-navigation { flex: 1 1 auto; min-width: 0; }
.site-header .site-search { flex: 0 1 300px; min-width: 180px; }
.site-header .site-search .widget_product_search form { margin: 0; }
.site-header .site-search input[type="search"] {
	height: 42px; padding: 0 14px 0 40px !important;
	border: 1px solid #cfd2d8; border-radius: 8px; background-color: var(--jc-wash);
	font-size: 15px; box-shadow: none;
}
.site-header .site-search form::before { top: 50%; transform: translateY(-50%); left: 14px; line-height: 1; }
.site-header .site-header-cart { flex: 0 0 auto; }
.site-header .site-header-cart .cart-contents { padding: 10px 4px; color: var(--jc-ink); font-weight: 600; font-size: 15px; }
.site-header .site-header-cart .cart-contents::after { color: var(--jc-ink); margin-left: 12px; }
.site-header-cart .widget_shopping_cart { width: 320px; }
.site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart { right: 0; left: auto; }
.site-header .site-header-cart .cart-contents .count { opacity: .7; }

/* Desktop nav (≥1200px): inline links with dropdowns */
@media (min-width: 1200px) {
	.main-navigation .primary-navigation { display: block; }
	/* One row at every width and zoom level: the links never wrap; the nav keeps its natural
	   width and the search field gives way first (down to its 180px minimum). Storefront floats
	   the items, so a few pixels of font rounding at a browser zoom used to push "Gaming" onto
	   a second line. */
	.site-header .main-navigation { flex: 1 0 auto; }
	.main-navigation ul.menu { display: flex; flex-wrap: nowrap; margin-left: 0; margin-right: 0; }
	.main-navigation ul.menu > li { float: none; flex: 0 0 auto; }
	.main-navigation ul.menu > li > a,
	.main-navigation ul.nav-menu > li > a {
		padding: 24px clamp(8px, .4vw + 4px, 12px);
		white-space: nowrap;
		font-weight: 600;
		font-size: 15px;
		color: var(--jc-ink);
		position: relative;
	}
	.main-navigation ul.menu > li.menu-item-has-children > a::after { display: none; }
	.main-navigation ul.menu > li:hover > a,
	.main-navigation ul.menu > li:focus-within > a { color: var(--jc-ink); }
	/* Neutral active underline */
	.main-navigation ul.menu > li.current-menu-item > a::before,
	.main-navigation ul.menu > li.current-menu-ancestor > a::before,
	.main-navigation ul.menu > li.current-menu-parent > a::before,
	.main-navigation ul.menu > li > a:hover::before {
		content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px;
		height: 3px; border-radius: 2px; background: var(--jc-ink);
	}
	.main-navigation ul.menu > li > a:hover::before { background: #b9bdc5; }
	.main-navigation ul.menu ul.sub-menu {
		background: var(--jc-paper) !important;
		border: 1px solid var(--jc-line);
		border-radius: 0 0 var(--jc-radius) var(--jc-radius);
		box-shadow: 0 18px 40px rgba(18, 19, 22, .12);
		padding: 8px 0;
		width: 250px;
	}
	.main-navigation ul.menu ul.sub-menu li a { width: 250px; padding: 9px 18px; font-size: 15px; color: var(--jc-ink-2); background: none !important; }
	.main-navigation ul.menu ul.sub-menu li a:hover { background: var(--jc-wash) !important; color: var(--jc-ink); }
	.main-navigation ul.menu ul.sub-menu li:first-child a { font-weight: 700; color: var(--jc-ink); }
	/* Long TCG list in two columns */
	.main-navigation ul.menu > li:first-child > ul.sub-menu { width: 500px; display: grid; grid-template-columns: 1fr 1fr; }
	.main-navigation ul.menu > li:first-child > ul.sub-menu li a { width: auto; }
	.main-navigation ul.menu > li:first-child > ul.sub-menu li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--jc-line); margin-bottom: 4px; }
}

/* Compact nav below 1200px: menu button + drop panel (tablet & small desktop) */
@media (max-width: 1199px) {
	.main-navigation .primary-navigation { display: none !important; }
	.main-navigation { display: flex; justify-content: flex-end; }
	.main-navigation .menu-toggle {
		display: inline-flex !important;
		align-items: center;
		gap: 8px;
		position: relative !important;
		float: none !important;
		margin: 0 !important;
		height: 42px;
		padding: 0 14px 0 40px !important;
		border: 1px solid var(--jc-ink) !important;
		border-radius: 8px;
		background: var(--jc-paper);
		color: var(--jc-ink) !important;
		font-weight: 600;
		font-size: 15px;
	}
	.main-navigation .menu-toggle span::before,
	.main-navigation .menu-toggle span::after,
	.main-navigation .menu-toggle::before,
	.main-navigation .menu-toggle::after { left: 14px !important; background-color: var(--jc-ink) !important; }
	.main-navigation .handheld-navigation {
		display: block !important;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--jc-paper);
		border-bottom: 1px solid var(--jc-line);
		box-shadow: 0 24px 40px rgba(18, 19, 22, .14);
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
	}
	.main-navigation.toggled .handheld-navigation {
		max-height: calc(100vh - var(--jc-header-h) - 20px);
		overflow-y: auto;
		visibility: visible;
	}
	.handheld-navigation ul.menu {
		max-width: var(--jc-max);
		margin: 0 auto !important;
		padding: 8px var(--jc-gutter) 20px !important;
	}
	.handheld-navigation ul.menu li { position: relative; border-bottom: 1px solid var(--jc-line); }
	.handheld-navigation ul.menu ul li { border-bottom: 0; }
	.handheld-navigation ul.menu > li > a { display: block; padding: 14px 56px 14px 0; font-weight: 700; font-size: 17px; color: var(--jc-ink); }
	.handheld-navigation ul.menu ul a { display: block; padding: 10px 0 10px 14px; font-size: 16px; color: var(--jc-ink-2); }
	.handheld-navigation .dropdown-toggle {
		position: absolute; right: 0; top: 4px;
		width: 48px; height: 48px;
		border: 0 !important; border-radius: 8px;
		background: var(--jc-wash) !important; color: var(--jc-ink) !important;
	}
	.handheld-navigation .dropdown-toggle.toggled-on { background: var(--jc-ink) !important; color: #fff !important; }
	.handheld-navigation ul.sub-menu { display: none; padding-bottom: 8px !important; margin: 0 !important; }
	.handheld-navigation ul.sub-menu.toggled-on { display: block; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.site-header .site-search { flex: 1 1 260px; }
	.site-header .main-navigation { flex: 0 0 auto; order: 3; }
	.site-header .site-header-cart { order: 4; }
}
@media (max-width: 767px) {
	:root { --jc-header-h: 60px; }
	.site-header .custom-logo-link img { height: 30px; }
	.site-header .site-search,
	.site-header .site-header-cart { display: none !important; }
	.main-navigation .menu-toggle { height: var(--jc-target); }
}

/* Breadcrumbs ----------------------------------------------------------- */
.woocommerce-breadcrumb {
	background: none !important;
	margin: 0 !important;
	padding: 18px 0 6px !important;
	font-size: 14px;
	color: var(--jc-muted);
	border: 0 !important;
}
.storefront-breadcrumb { padding: 0; margin: 0; }
.woocommerce-breadcrumb a { color: var(--jc-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--jc-ink); text-decoration: underline; }
.woocommerce-breadcrumb a:first-of-type::before { display: none; }
.woocommerce-breadcrumb .breadcrumb-separator { padding: 0 .35em; }
.woocommerce-breadcrumb > :last-child, .woocommerce-breadcrumb { color: var(--jc-ink); font-weight: 600; }
.woocommerce-breadcrumb a, .woocommerce-breadcrumb .breadcrumb-separator { font-weight: 400; }

/* Product grid & cards -------------------------------------------------- */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px !important;
	padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
@media (min-width: 768px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1700px) { ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2200px) { ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; } }
/* A row of exactly four (homepage "Novo", related products) stays one row of four. */
@media (min-width: 1700px) { ul.products:has(> li.product:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; clear: none !important;
	display: flex; flex-direction: column;
	background: var(--jc-paper);
	border: 1px solid var(--jc-line);
	border-radius: var(--jc-radius);
	padding: 12px 12px 14px;
	text-align: left;
	transition: border-color .15s, box-shadow .15s;
}
ul.products li.product:hover { border-color: #b9bdc5; box-shadow: 0 8px 24px rgba(18, 19, 22, .08); }
ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
ul.products li.product img {
	aspect-ratio: 1; object-fit: contain; width: 100%; height: auto;
	margin: 0 0 12px !important; border-radius: 6px; background: #fafafa;
}
ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important; line-height: 1.3; font-weight: 600; color: var(--jc-ink);
	margin: 0 0 8px; padding: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	text-wrap: pretty; /* no one-word last line (detector advisory, pass 1) */
}
ul.products li.product .price { margin: auto 0 4px; font-size: 18px; font-weight: 800; color: var(--jc-ink); }
ul.products li.product .price del { font-weight: 400; color: var(--jc-muted); font-size: 14px; }
ul.products li.product .onsale { order: -1; align-self: flex-start; margin: 0 0 8px; border: 0; background: var(--jc-brand); color: #fff; border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.jc-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.jc-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.jc-stock--in { color: var(--jc-ok); }
.jc-stock--out { color: #9b1c1c; }
.jc-stock--back { color: #9a5b00; }
ul.products li.product .button {
	display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 44px; margin: 0 !important;
	border-radius: 8px; background: var(--jc-ink); color: #fff;
	font-weight: 700; font-size: 15px;
}
ul.products li.product .button:hover { background: #000; }
ul.products li.product .added_to_cart { display: block; text-align: center; padding-top: 8px; font-size: 14px; }
@media (max-width: 420px) {
	ul.products li.product { padding: 8px 8px 10px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
	ul.products li.product .price { font-size: 16px; }
	ul.products li.product .button { font-size: 14px; padding: 0 6px; line-height: 1.15; text-align: center; }
}

/* Pagination ------------------------------------------------------------ */
.woocommerce-pagination .page-numbers { border: 0 !important; display: flex !important; justify-content: center; gap: 6px; }
.woocommerce-pagination .page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers li .page-numbers {
	display: inline-flex !important; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 10px; border-radius: 8px;
	background: transparent; color: var(--jc-ink); font-weight: 700;
}
.woocommerce-pagination .page-numbers li a.page-numbers:hover { background: var(--jc-wash); }
.woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--jc-ink); color: #fff; }
/* 8+ page links are wider than a phone: wrap instead of clipping page 1 and "next" */
.woocommerce-pagination { width: 100%; }
.woocommerce-pagination .page-numbers { flex-wrap: wrap; }
.woocommerce-pagination a { text-decoration: none; }

/* Tiles ----------------------------------------------------------------- */
.jc-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jc-tiles--games.jc-tiles--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jc-tiles--departments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jc-tiles--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .jc-tiles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
	.jc-tiles--games.jc-tiles--full { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.jc-tiles--departments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1100px) {
	.jc-tiles--games.jc-tiles--full { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.jc-tiles--departments { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.jc-tiles--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.jc-tile a {
	position: relative;
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--jc-line); border-radius: var(--jc-radius);
	background: var(--jc-paper); color: var(--jc-ink); text-decoration: none;
	overflow: hidden;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
/* 0.7: no accent bar (user: "the coloured accents at the top don't look nice"); the picture is a
   window into the game's own scene instead (jc_tile_media()), compact tiles keep a colour dot. */
.jc-tile a:hover { border-color: #b9bdc5; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18,19,22,.08); }
/* Every tile picture is 4:3 (0.7.2: the square photo well made the Manga tile ~55px taller than its row). */
.jc-tile__media { display: block; aspect-ratio: 4 / 3; padding: 0; background: #fafafa; }
.jc-tile__media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; box-sizing: border-box; }
.jc-tile__media--scene.jc-tile__media--cover { display: flex; align-items: flex-end; justify-content: center; }
.jc-tile__media--cover .jc-tile__cover {
	/* the cover photo on its white square reads as a print mounted on the map */
	width: auto; height: 62%; max-width: 46%; padding: 0; margin-bottom: 12%; object-fit: contain;
	border-radius: 2px; box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 10px 18px -6px rgb(21 23 28 / .45);
}
@media (prefers-reduced-motion: no-preference) {
	.jc-tile__cover { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
	.jc-tile a:hover .jc-tile__cover { transform: translateY(-4px); }
}
.jc-tile__media--scene {
	position: relative; display: block; padding: 0; aspect-ratio: 4 / 3; overflow: hidden;
	background-repeat: no-repeat; background-size: cover;
}
.jc-tile__piece {
	position: absolute; transform: translateX(-50%); max-width: none;
	padding: 0 !important;   /* 0.7.17: the photo tiles' 10px padding (.jc-tile__media img) lifted every product off its floor */
	object-fit: contain; object-position: 50% 100%;
}
.jc-tile__contact {
	position: absolute; height: 9%; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgb(0 0 0 / .55), rgb(0 0 0 / .25) 60%, transparent);
	filter: blur(1px); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
	.jc-tile__piece { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
	.jc-tile a:hover .jc-tile__piece { transform: translateX(-50%) translateY(-4px); }
}
.jc-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.jc-tile__name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.jc-tile__meta { font-size: 13px; color: var(--jc-muted); }
.jc-tile--empty .jc-tile__meta { font-style: italic; }
.jc-tiles--compact .jc-tile__body { padding: 10px 12px; }
.jc-tiles--compact .jc-tile__name { font-size: 15px; }
.jc-tiles--compact .jc-tile__name::before {
	content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
	background: var(--jc-tile-accent, var(--jc-ink));
}

/* Pages ----------------------------------------------------------------- */
.page:not(.home):not(.jc-catalog) .entry-title { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 800; }

/* Handheld footer bar (mobile search / account / cart stays) ------------ */
.storefront-handheld-footer-bar { border-top: 1px solid var(--jc-line); }
.storefront-handheld-footer-bar ul li > a { background: var(--jc-paper) !important; color: var(--jc-ink) !important; border-right: 1px solid var(--jc-line); }
.storefront-handheld-footer-bar ul li > a::before { color: var(--jc-ink) !important; }
.storefront-handheld-footer-bar ul li.search .site-search { background: var(--jc-paper) !important; padding: 12px var(--jc-gutter); }
.storefront-handheld-footer-bar { background: var(--jc-paper) !important; }
.storefront-handheld-footer-bar ul li.cart .count { background: #c81d30 !important; /* Joker Red deepened: white text needs 4.5:1 */ color: #fff !important; border-color: var(--jc-paper) !important; }

/* Footer */
.site-footer { background: var(--jc-ink) !important; color: #c9ccd2 !important; }
.site-footer a { color: #fff !important; }

/* Footer store facts (inc/footer.php) ----------------------------------- */
.jc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding: 28px 0 8px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.jc-footer p { margin: 0; color: #c9ccd3; line-height: 1.6; }
.jc-footer .jc-footer__name { color: #fff; font-weight: 700; }
.site-footer .jc-footer__discord-link { display: flex; align-items: center; gap: 14px; color: #c9ccd3; text-decoration: none; line-height: 1.6; min-height: var(--jc-target); }
.site-footer .jc-footer__discord-link:hover .jc-footer__name { text-decoration: underline; text-underline-offset: 3px; }
.jc-footer__qr { width: 96px; height: 96px; border-radius: 6px; flex: none; }
@media (max-width: 767px) { .jc-footer__qr { display: none; } } /* on a phone the link itself is the way in */
.jc-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: flex-start; }
.jc-footer__links a { display: inline-flex; align-items: center; min-height: max(32px, var(--jc-target)); color: #fff; font-weight: 600; text-decoration: none; }
.jc-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer menu widget (the shop's own legal-links menu, 0.7.21): a quiet row of small links under the
   store facts instead of a second, louder link list above them. Its "Meni" heading stays for screen
   readers only. Order: store facts, legal row, copyright. */
.site-footer > .col-full { display: flex; flex-direction: column; }
.site-footer .jc-footer { order: 1; }
.site-footer .footer-widgets { order: 2; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 0; }
.site-footer .site-info { order: 3; }
.site-footer .footer-widgets .block { width: auto; float: none; margin: 0; }
.site-footer .footer-widgets .widget { margin: 0; }
.site-footer .widget-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer .widget_nav_menu ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; }
.site-footer .widget_nav_menu ul li::before { display: none; }
.site-footer .widget_nav_menu ul li { padding-left: 0; margin: 0; }
.site-footer .widget_nav_menu a { display: inline-block; line-height: 1.4; padding-block: calc((var(--jc-target) - 1.4em) / 2); font-size: 14px; font-weight: 400; color: #c9ccd3 !important; text-decoration: none; }
.site-footer .widget_nav_menu a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

/* Text pages (contact, legal, cart notes, 0.7.21): the owner's block content in the shop's type, not
   Storefront's light headings. Direct child blocks only, so the homepage and manga index keep theirs. */
.page:not(.home) .entry-content > .wp-block-heading { font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 2em 0 .6em; }
.page:not(.home) .entry-content > h2.wp-block-heading { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.page:not(.home) .entry-content > h3.wp-block-heading { font-size: 1.15rem; }
.page:not(.home) .entry-content > :first-child { margin-top: 0; }
.page:not(.home) .entry-content > :is(p, ul, ol, .wp-block-heading, .wp-block-quote, .wp-block-table) { max-width: 46em; }   /* reading measure; cart/checkout blocks and product grids keep the full width */
.entry-content mark { background: #fff1b8; color: inherit; padding: 0 .15em; border-radius: 3px; }
/* Tables scroll sideways on phones instead of squeezing every column to a few letters. */
.entry-content .wp-block-table { overflow-x: auto; margin: 0 0 1.5em; }
.entry-content .wp-block-table table { width: 100%; min-width: 36em; border-collapse: collapse; font-size: 15px; }
.hentry .entry-content .wp-block-table tr { background: none; }   /* .hentry: Storefront's own table rules carry it */
.hentry .entry-content .wp-block-table th, .hentry .entry-content .wp-block-table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--jc-line); background: none; }
.hentry .entry-content .wp-block-table thead th { font-weight: 700; border-bottom: 2px solid var(--jc-ink); }

/* Phone bottom bar: no badge on an empty cart (inc/header.php adds .jc-cart-empty) */
.storefront-handheld-footer-bar ul li.cart .footer-cart-contents.jc-cart-empty .count { display: none; }

/* Storefront's navigation.js leaves `.focus` on a top-level item after keyboard focus moves on, so
   its dropdown stayed open over the page (0.7.2 polish). Open only while hovered or focused within. */
@media (min-width: 768px) {
	.main-navigation ul.menu li.focus:not(:hover):not(:focus-within) > ul.sub-menu,
	.main-navigation ul.nav-menu li.focus:not(:hover):not(:focus-within) > ul.children { left: -9999px; }
}

/* Not found (404.php, 0.7.3): Slovenian, on the homepage's wall tone, search first, then the aisles. */
.error404 .site-content { background: var(--jc-wall, #f2efe9); }
.error404 .site-main { margin-bottom: 0; }
.jc-404 { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.jc-404__head { max-width: 40em; }
.jc-404__code { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jc-muted); }
.jc-404__title { margin: 0 0 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.jc-404__lead { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--jc-ink-2); text-wrap: pretty; }
.jc-404__search { max-width: 40em; margin: 24px 0 0; }
.jc-404__search form { position: relative; margin: 0; }
.jc-404__search input[type="search"] {
	width: 100%; min-height: 56px; box-sizing: border-box; padding: 12px 16px;
	font-size: 1.0625rem; background: var(--jc-paper); border: 2px solid var(--jc-control-line); border-radius: var(--jc-radius); box-shadow: none;
}
.jc-404__search input[type="search"]:focus { border-color: var(--jc-ink); }
.jc-404__aisle { margin-top: clamp(36px, 4.5vw, 56px); }
.jc-404__home { margin: clamp(32px, 4vw, 48px) 0 0; font-weight: 700; }
.jc-404__home a { display: inline-block; padding: 6px 0 4px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.jc-404__home a:hover { text-decoration-thickness: 3px; }
.jc-404__search form { display: flex; gap: 8px; }
.jc-404__search button[type="submit"] {
	position: static !important; clip: auto !important; clip-path: none !important; width: auto !important; height: auto !important; overflow: visible !important;
	flex: 0 0 auto; min-height: 56px; padding: 12px 24px; border-radius: var(--jc-radius);
	background: var(--jc-ink); color: #fff; font-weight: 700; font-size: 1.0625rem; border: 0;
}
.jc-404__search button[type="submit"]:hover { background: var(--jc-ink-2); }

/* Phone bottom bar with visible labels (loop pass 1: icon-only "account / search / cart" made shoppers
   guess; Storefront hides the text with text-indent). Icon on top, 12px label under it, same 64px bar. */
.storefront-handheld-footer-bar ul li > a {
	height: 64px; padding: 38px 4px 0; box-sizing: border-box;
	text-indent: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font: 600 12px/1.2 var(--jc-font); letter-spacing: 0; text-decoration: none !important;
}
.storefront-handheld-footer-bar ul li > a::before { font-size: 20px; line-height: 1; top: 12px; bottom: auto; }
.storefront-handheld-footer-bar ul li.cart .count { font-size: 11px; top: 4px; margin-left: 4px; }

/* Control height token (loop pass 1, audit: chips, sort, menu toggle 40px and footer links 23-32px on
   phones). 40px with a mouse, 44px wherever the primary pointer is a finger. */
:root { --jc-target: 40px; }
@media (pointer: coarse) { :root { --jc-target: 44px; } }

/* Loop pass 2 -------------------------------------------------------------------------------- */
/* Phones: keyboard focus never ends under the fixed bottom bar (WCAG 2.4.11), and its closed search
   field is out of the tab order. */
@media (max-width: 767px) {
	html { scroll-padding-bottom: 84px; }
	.storefront-handheld-footer-bar ul li.search:not(.active) .site-search { visibility: hidden; }
}
/* Landing spot for sorting and pagination (inc/a11y.php) */
.jc-anchor { display: block; height: 0; scroll-margin-top: 12px; }
/* Keyboard sorting: the button appears next to the select once a choice is made by keyboard */
.woocommerce-ordering { display: inline-flex; gap: 8px; align-items: center; }
.jc-sort-go {
	min-height: var(--jc-target); padding: 0 16px; border: 0; border-radius: 8px;
	background: var(--jc-ink); color: #fff; font: 700 14px/1 var(--jc-font); cursor: pointer;
}
.jc-sort-go[hidden] { display: none; }

/* Header mini-cart dropdown: Storefront's Customizer CSS (switched off) painted it; Menu drop. */
.site-header-cart .widget_shopping_cart {
	background: var(--jc-paper); color: var(--jc-ink);
	border: 1px solid var(--jc-line); border-radius: 0 0 10px 10px;
	box-shadow: 0 18px 40px rgba(18, 19, 22, .12);
}
.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons a.button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
	border-radius: 8px; background: var(--jc-paper); color: var(--jc-ink); border: 1px solid #c9ccd3;
	font-weight: 700; text-decoration: none;
}
.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__buttons a.button.checkout { background: var(--jc-ink); color: #fff; border-color: var(--jc-ink); }

/* After AJAX add to cart: WooCommerce adds "Prikaži košarico" under the button (it was an unstyled
   grey slab). A plain link in ink with a 44px target; the button itself shows a check once added. */
ul.products li.product a.added_to_cart {
	display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px;
	padding: 0; background: none; border: 0; color: var(--jc-ink);
	font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
ul.products li.product .button.add_to_cart_button.added::after {
	content: ""; display: inline-block; width: .95em; height: .95em; margin-left: 8px; vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Phones: four title lines in cards, so long names from one game ("Magic the Gathering Avatar: The
   Last Airbender …") don't all cut to the same text (pass-2 audit B3). */
@media (max-width: 599px) {
	ul.products li.product .woocommerce-loop-product__title { -webkit-line-clamp: 4; }
}

/* Keyboard opens the header mini-cart like hover does (pass-2 verifier: focus went to off-screen links). */
.site-header-cart:focus-within .widget_shopping_cart { left: auto; right: 0; }

/* Loop pass 3 (carried P3s) */
/* "Skoči na iskanje" only where the header search exists (phones use the bottom bar's Iskanje). */
@media (max-width: 767px) { .jc-skip-search { display: none !important; } }
/* Storefront's menu and dropdown transitions stop under reduced motion (pass-2 audit B11). */
@media (prefers-reduced-motion: reduce) {
	.main-navigation ul ul, .main-navigation .menu-toggle, .handheld-navigation, .site-header-cart .widget_shopping_cart,
	.storefront-handheld-footer-bar ul li.search .site-search, .storefront-sticky-add-to-cart { transition: none !important; animation: none !important; }
}
/* Zoomed scene tile (preset 'tile_zoom', inc/shortcodes.php) */
.jc-tile__stage { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; }

/* Pass 3 ------------------------------------------------------------------------------------- */
/* Closed menu: Storefront keeps the current section's submenu "toggled-on" with visibility:visible,
   which made its links focusable inside the hidden panel (pass-3 audit B1, WCAG 2.4.3/2.4.7). */
@media (max-width: 1199px) {
	.main-navigation:not(.toggled) .handheld-navigation,
	.main-navigation:not(.toggled) .handheld-navigation * { visibility: hidden !important; }
}
/* Header edges = content edges: Storefront's clearfix pseudo-elements were flex items and took a gap
   at each end (header inset 28.8px at 1440, pass-3 review A2). */
.site-header > .col-full::before, .site-header > .col-full::after,
.jc-utility .col-full::before, .jc-utility .col-full::after { content: none; }
/* Open tablet menu (768–1199): Storefront's desktop dropdown rules (absolute, left:-9999px, caret on the
   link) applied inside our menu panel, so the open section's links took focus off-screen and each item
   showed two chevrons (pass-3 verifier). In the panel, submenus are plain nested lists. */
@media (min-width: 768px) and (max-width: 1199px) {
	.main-navigation .handheld-navigation ul.sub-menu.toggled-on {
		display: block; position: static; left: auto; top: auto; float: none; width: auto;
		box-shadow: none; background: transparent; visibility: visible;
	}
	.main-navigation .handheld-navigation ul.menu li { display: block; float: none; width: auto; }
	.main-navigation .handheld-navigation ul.menu > li.menu-item-has-children > a::after,
	.main-navigation .handheld-navigation ul.menu ul li.menu-item-has-children > a::after { content: none; display: none; }
}
