/* SN_STORE_HERO_V1 — celoširinski hero na strani trgovine ponudnika.
   Žetoni: DESIGN.md "JemSlovensko Forest Market". */

.sn-store {
	--sn-ink: #1E2223;
	--sn-accent: #435C2E;
	--sn-accent-hover: #374C25;
	--sn-accent-tint: #EBEEE9;
	--sn-line: #DDE3DA;
	--sn-head: "DM Sans", sans-serif;
	margin-bottom: 40px;
}

body:has(.sn-store) { overflow-x: clip; }

/* Hero sega čez celo širino okna, vsebina ostane poravnana z vsebnikom. */
.sn-store-hero {
	position: relative;
	isolation: isolate;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	min-height: clamp(460px, 66vh, 680px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--sn-accent);
	color: #FFFFFF;
}
.sn-store-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}
.sn-store-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Enakomerna temna plast čez celo sliko + močnejši spodnji del za berljivost besedila. */
	background:
		linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%),
		rgba(0, 0, 0, 0.38);
}
.sn-store-hero.is-no-banner::after { display: none; }

.sn-store-hero-in {
	width: var(--theme-container-width, calc(100vw - 60px));
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-inline: auto;
	padding-block: 56px 100px;
}
.sn-store .sn-ico { width: 18px; height: 18px; flex: none; }

/* Logotip nad imenom */
.sn-store .sn-store-logo {
	display: block;
	width: 96px;
	height: 96px;
	margin-bottom: 18px;
	border-radius: 50%;
	object-fit: contain;
	background: #FFFFFF;
	border: 3px solid #FFFFFF;
	box-shadow: 0 6px 20px rgba(20, 28, 14, 0.25);
}
.sn-store .store-name {
	font-family: var(--sn-head);
	font-weight: 700;
	font-size: clamp(32px, 3.6vw, 52px);
	line-height: 1.08;
	color: #FFFFFF;
	margin: 0 0 10px;
}
.sn-store-place { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; color: rgba(255, 255, 255, 0.9); }

/* Kontakti: takoj pod krajem, na fotografiji */
.sn-store-contacts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; }
.sn-store-contacts a { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; font-size: 16px; text-decoration: none; }
.sn-store-contacts a:hover { text-decoration: underline; text-underline-offset: 3px; color: #FFFFFF; }
.sn-store-contacts .sn-ico { opacity: 0.9; }

/* Bela vrstica z dejstvi čez spodnji rob heroja */
.sn-store-bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: -56px;
	padding: 22px 28px;
	background: #FFFFFF;
	border: 1px solid var(--sn-line);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(20, 28, 14, 0.1);
	color: var(--sn-ink);
}
.sn-store-bar-facts { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
.sn-store-bar-facts li { display: flex; align-items: center; gap: 12px; }
.sn-store-bar-facts .sn-ico { width: 24px; height: 24px; color: var(--sn-accent); }
.sn-store-bar-facts span { display: flex; flex-direction: column; font-size: 14px; color: #4C4C4C; line-height: 1.3; }
.sn-store-bar-facts strong { font-family: var(--sn-head); font-size: 22px; color: var(--sn-ink); }

.sn-store-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-left: auto; }
.sn-store .sn-store-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 26px;
	background: var(--sn-accent);
	color: #FFFFFF;
	font-family: var(--sn-head);
	font-weight: 700;
	font-size: 16px;
	border-radius: 4px;
	text-decoration: none;
	transition: transform 0.12s ease, background-color 0.2s ease;
}
.sn-store .sn-store-cta:hover { background: var(--sn-accent-hover); color: #FFFFFF; }
.sn-store .sn-store-cta:active { transform: translateY(1px); }
.sn-store .sn-store-cta:focus-visible { outline: 3px solid var(--sn-accent-tint); outline-offset: 3px; }
.sn-store .sn-store-mail { color: var(--sn-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.sn-store .sn-store-mail:hover { color: var(--sn-accent-hover); }

/* Drobtine poravnaj z vsebnikom in zmanjšaj prazen prostor nad herojem. */
body.dokan-store #breadcrumbs { display: none; }
body.dokan-store main#main section:has(> .dokan-store-wrap) { padding-top: 0; }
body.dokan-store main#main .ct-container[data-vertical-spacing]:has(.sn-store) { padding-top: 0; }
body.dokan-store main#main :is(section, .ct-container, .dokan-store-wrap, #dokan-primary, #dokan-content):has(.sn-store) { margin-top: 0; padding-top: 0; }
.sn-store, .sn-store-hero { margin-top: 0; }
body.dokan-store .dokan-store-wrap { margin-top: 0; }
/* Dokan na mobilnem doda width:94% + margin 3% znotraj Blocksy vsebnika (dvojni rob). */
body.dokan-store .dokan-single-store { width: 100% !important; margin-inline: 0 !important; }

/* Zavihki in iskanje v barvah strani (Dokan privzeto uporablja vijolično). */
.sn-store .dokan-store-tabs {
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--sn-line);
	background: transparent;
	box-shadow: none;
}
.sn-store .dokan-store-tabs ul.dokan-list-inline li a { color: var(--sn-accent); font-family: var(--sn-head); font-weight: 600; }
body.dokan-store .dokan-btn-theme,
body.dokan-store .dokan-store-products-filter-area .search-store-products {
	background-color: var(--sn-accent, #435C2E);
	border-color: var(--sn-accent, #435C2E);
	color: #FFFFFF;
	border-radius: 4px;
}
body.dokan-store .dokan-btn-theme:hover { background-color: #374C25; border-color: #374C25; color: #FFFFFF; }
/* O pridelovalcu: pod herojem, nad izdelki */
.sn-store-about {
	margin: 48px 0 0;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--sn-line);
}
.sn-store .sn-store-about h2 {
	font-family: var(--sn-head);
	font-weight: 700;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.15;
	color: var(--sn-ink);
	margin: 0 0 14px;
}
.sn-store-about p { max-width: 60%; margin: 0; font-size: 17px; line-height: 1.65; color: #4C4C4C; }

/* Naslov seznama izdelkov */
.sn-store-products-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 40px 0 0;
	scroll-margin-top: 24px;
}
/* Brez iskanja je naslov prazen: ne sme dodajati razmika. */
.sn-store-products-head:not(:has(h2)) { margin: 0; }
.sn-store .sn-store-products-head h2 {
	font-family: var(--sn-head);
	font-weight: 700;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.15;
	color: var(--sn-ink);
	margin: 0;
}
.sn-store-products-head span { color: #4C4C4C; font-size: 15px; }
.sn-store .sn-store-clear { color: var(--sn-accent); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

/* Iskanje in razvrščanje: ena vrstica, iskalno polje z ikono in pripetim gumbom */
body.dokan-store .dokan-store-products-filter-area {
	margin: 8px 0 28px;
	padding: 0;
	border: 0;
	background: transparent;
}
body.dokan-store .dokan-store-products-filter-area::before,
body.dokan-store .dokan-store-products-filter-area::after { display: none; }
body.dokan-store form.dokan-store-products-ordeby {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	position: relative;
	margin: 0;
	float: none;
	width: 100%;
}
body.dokan-store .dokan-store-products-filter-search {
	flex: 1 1 320px;
	max-width: 520px;
	height: 48px;
	margin: 0;
	padding: 0 16px 0 44px;
	border: 1px solid #DDE3DA;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23435C2E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 20px;
	font-size: 16px;
	color: #1E2223;
	box-shadow: none;
	float: none;
}
body.dokan-store .dokan-store-products-filter-search:focus { border-color: #435C2E; outline: 2px solid #EBEEE9; outline-offset: 0; }
body.dokan-store .dokan-store-products-filter-search::placeholder { color: #6B716C; }
body.dokan-store form.dokan-store-products-ordeby .search-store-products {
	height: 48px;
	margin: 0 0 0 -12px;
	padding: 0 22px;
	border-radius: 0 4px 4px 0;
	font-family: var(--sn-head);
	font-weight: 600;
	font-size: 15px;
	float: none;
}
body.dokan-store form.dokan-store-products-ordeby select.orderby {
	margin: 0 0 0 auto;
	flex: 0 0 260px;
	width: 260px;
	max-width: 100%;
	height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid #DDE3DA;
	border-radius: 4px;
	background-color: #FFFFFF;
	font-size: 15px;
	color: #1E2223;
	float: none;
	box-shadow: none;
}
body.dokan-store form.dokan-store-products-ordeby select.orderby:focus { border-color: #435C2E; outline: 2px solid #EBEEE9; }
body.dokan-store #dokan-store-products-search-result {
	position: absolute;
	top: 52px;
	left: 0;
	z-index: 30;
	width: min(520px, 100%);
	background: #FFFFFF;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(20, 28, 14, 0.12);
}
body.dokan-store #dokan-store-products-search-result:empty { display: none; }

.sn-store-bar-facts span { white-space: nowrap; }

/* Tablica: dejstva v prvi vrsti, e-pošta in gumb v drugi. */
@media (min-width: 690px) and (max-width: 1100px) {
	.sn-store-bar { flex-wrap: wrap; row-gap: 18px; }
	.sn-store-actions { width: 100%; margin-left: 0; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--sn-line); }
}

@media (max-width: 689px) {
	.sn-store-bar-facts span { white-space: normal; }
	.sn-store-hero { min-height: 0; }
	.sn-store-hero-in { padding-block: 120px 84px; }
	.sn-store .sn-store-logo { width: 72px; height: 72px; margin-bottom: 14px; }
	.sn-store .store-name { font-size: 30px; }
	.sn-store-place { font-size: 16px; }

	/* Vrstica postane kartica: dejstva v dveh stolpcih, gumb čez celo širino. */
	.sn-store-bar { flex-direction: column; align-items: stretch; gap: 18px; margin-top: -48px; padding: 20px; }
	.sn-store-bar-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.sn-store-bar-facts li { flex-direction: column; align-items: flex-start; gap: 6px; }
	.sn-store-bar-facts strong { font-size: 20px; }
	.sn-store-actions { flex-direction: column-reverse; align-items: stretch; margin: 0; gap: 12px; }
	.sn-store .sn-store-cta { width: 100%; }
	.sn-store .sn-store-mail { text-align: center; }

	.sn-store-about { margin-top: 36px; }
	.sn-store-about p { max-width: none; font-size: 16px; }
	.sn-store-products-head { margin-top: 28px; }
	body.dokan-store .dokan-store-products-filter-search { flex: 1 1 0; max-width: none; min-width: 0; }
	body.dokan-store form.dokan-store-products-ordeby select.orderby { flex: 1 1 100%; width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sn-store .sn-store-cta { transition: none; }
}
