/* Store page "Prodajna mesta" (0.7.25): the Koper store as facts first, the week of opening hours with
   today marked, and the two store photos. Content is plain blocks (tools/release/store-page.html), so
   the page still reads without this theme; the theme recognises it by its .jc-store group.
   Ground: the homepage wall tone, so the page is not a white sheet (user: white pages hurt the eyes). */

body:has(.jc-store) .site-content { background: var(--jc-wall, #f2efe9); }
body:has(.jc-store) .site-main { margin-bottom: 0; padding-bottom: clamp(40px, 6vw, 80px); }
body:has(.jc-store) .hentry { margin-bottom: 0; }
body:has(.jc-store) .storefront-breadcrumb { background: var(--jc-wall, #f2efe9); }
/* The page title "Prodajna mesta" stays the h1 for screen readers and the tab; on screen the store's own
   name leads, so the page doesn't open with two titles in a row. */
body:has(.jc-store) .entry-header {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body:has(.jc-store) .site-main { padding-top: clamp(12px, 2.5vw, 36px); }
/* Storefront (a classic theme) wraps each group's blocks in an inner container; let the grid see them. */
.jc-store .wp-block-group__inner-container { display: contents; }

.jc-store { --jc-store-gap: clamp(24px, 4vw, 64px); }
.jc-store > * { margin-top: 0; margin-bottom: 0; }

/* Facts beside the shopfront ------------------------------------------- */
.jc-store__intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}
@media (min-width: 900px) {
	.jc-store__intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--jc-store-gap); }
}
.jc-store__facts > * { margin: 0; }
.hentry .entry-content .jc-store__facts h2 {
	font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin: 0 0 18px;
}
.jc-store__address { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 600; line-height: 1.4; color: var(--jc-ink); }
.jc-store__note { margin-top: 12px !important; color: var(--jc-ink-2); max-width: 34ch; text-wrap: pretty; }

.hentry .entry-content .jc-store__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hentry .entry-content .jc-store__actions .wp-block-button { margin: 0; }
.hentry .entry-content .jc-store__actions .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; box-sizing: border-box;
	border-radius: 8px; border: 1px solid var(--jc-ink);
	font: 700 15px/1 var(--jc-font); text-decoration: none;
	transition: background-color .15s ease-out, border-color .15s ease-out;
}
.hentry .entry-content .jc-store__map .wp-block-button__link { background: var(--jc-ink); color: var(--jc-paper); }
.hentry .entry-content .jc-store__map .wp-block-button__link:hover { background: #000; color: var(--jc-paper); }
.hentry .entry-content .jc-store__contact .wp-block-button__link { background: transparent; color: var(--jc-ink); border-color: var(--jc-control-line); }
.hentry .entry-content .jc-store__contact .wp-block-button__link:hover { border-color: var(--jc-ink); background: rgb(18 19 22 / .04); }

.jc-store figure { margin: 0; }
.jc-store img { display: block; width: 100%; height: auto; border-radius: var(--jc-radius); }
.jc-store__front img { aspect-ratio: 4 / 3; object-fit: cover; }

/* The week: seven days as one row of shelf labels, today in ink ---------- */
.hentry .entry-content .jc-store__hours-title {
	font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
	margin: clamp(40px, 6vw, 72px) 0 14px;
}
.hentry .entry-content ul.jc-store__week {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
}
.jc-store__week li {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	min-height: 44px; box-sizing: border-box; margin: 0;
	padding: 10px 16px;
	background: var(--jc-paper);
	border: 1px solid var(--jc-line);
	border-radius: var(--jc-radius);
	font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--jc-ink);
}
.jc-store__week li strong { font-size: 15px; font-weight: 600; color: var(--jc-ink-2); }
.jc-store__week li:last-child { color: var(--jc-muted); font-weight: 600; background: transparent; border-style: dashed; border-color: var(--jc-control-line); }
.jc-store__week li.is-today { background: var(--jc-ink); border-color: var(--jc-ink); color: var(--jc-paper); }
.jc-store__week li.is-today strong { color: var(--jc-paper); }
.jc-store__today { font-size: 12px; font-weight: 700; color: #f2efe9; margin-left: 8px; }
@media (min-width: 768px) {
	.hentry .entry-content ul.jc-store__week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
	.jc-store__week li { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 14px 16px 16px; font-size: clamp(17px, 1rem + .4vw, 21px); }
	.jc-store__today { display: block; margin: 2px 0 0; }
}

/* Inside the store: a wide band of the shelves -------------------------- */
.jc-store__inside { margin-top: clamp(28px, 4vw, 48px) !important; }
.jc-store__inside img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
@media (min-width: 768px) {
	.jc-store__inside img { aspect-ratio: 21 / 8; object-position: 50% 58%; }
}
