/*
Theme Name: ERV Storefront
Description: ID Tech izgled trgovine tablicama za evidenciju radnog vremena.
Template: storefront
Version: 1.1.2
Requires at least: 7.0
Requires PHP: 7.4
Text Domain: erv-storefront
*/

.erv-storefront {
	--erv-ink: #273743;
	--erv-muted: #50636d;
	--erv-accent: #1492b2;
	--erv-teal: #076c84;
	--erv-teal-dark: #075065;
	--erv-navy: #123d50;
	--erv-tint: #f1f8fa;
	--erv-border: #d2e0e5;
	--erv-gutter: clamp(1.125rem, 3.2vw, 2.5rem);
	color: var(--erv-ink);
	font: 400 1rem/1.6 Roboto, system-ui, sans-serif;
}

.erv-storefront :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
	font-family: inherit;
}

.erv-storefront :is(h1, h2, h3, h4) {
	color: var(--erv-ink);
	font-weight: 700;
	letter-spacing: normal;
}

.erv-storefront :is(a, .woocommerce-info a) {
	text-underline-offset: .16em;
}

.erv-storefront a {
	color: var(--erv-teal);
}

.erv-storefront :focus-visible {
	outline: 2px solid var(--erv-teal);
	outline-offset: 3px;
}

.erv-storefront .col-full {
	box-sizing: border-box;
	max-width: 77rem;
	padding-inline: var(--erv-gutter);
	margin-inline: auto;
}

.erv-storefront #masthead.site-header {
	margin-bottom: 0;
	padding: 0;
	border-bottom: 1px solid var(--erv-border);
	background: #fff;
}

.erv-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.25rem);
	min-height: 5rem;
}

.erv-storefront .erv-header::before,
.erv-storefront .erv-header::after {
	display: none;
}

.erv-brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 2.75rem;
}

.erv-brand img {
	display: block;
	width: auto;
	height: 2.5rem;
}

.erv-navigation ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .4rem clamp(.8rem, 2.5vw, 1.85rem);
	margin: 0;
	list-style: none;
	padding: 0;
}

.erv-cart-link {
	gap: .45rem;
}

.erv-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.5rem;
	box-sizing: border-box;
	padding: .08rem .36rem;
	border-radius: 999px;
	background: var(--erv-teal);
	color: #fff;
	font-size: .79rem;
	font-variant-numeric: tabular-nums;
}

.erv-cart-count[hidden] {
	display: none;
}

.erv-navigation ul {
	justify-content: flex-end;
}

.erv-storefront #masthead .erv-navigation a {
	display: block;
	padding: .7rem .1rem .5rem;
	border-bottom: 2px solid transparent;
	color: var(--erv-ink);
	font-size: .96rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.erv-storefront #masthead .erv-navigation a:is(:hover, [aria-current]) {
	border-bottom-color: var(--erv-accent);
	color: var(--erv-teal);
}

.erv-storefront a.erv-button {
	display: inline-flex;
	min-height: 2.75rem;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: .54rem 1rem;
	border: 1px solid var(--erv-teal);
	border-radius: .32rem;
	background: var(--erv-teal);
	color: #fff;
	font-size: .94rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.erv-storefront a.erv-button:hover {
	border-color: var(--erv-teal-dark);
	background: var(--erv-teal-dark);
	color: #fff;
}

.erv-storefront a.erv-button-secondary,
.erv-storefront #masthead a.erv-cart-link {
	border-color: var(--erv-border);
	background: #fff;
	color: var(--erv-teal);
}

.erv-storefront a.erv-button-secondary:hover,
.erv-storefront #masthead a.erv-cart-link:hover {
	border-color: var(--erv-teal);
	background: var(--erv-tint);
	color: var(--erv-teal-dark);
}

.erv-home {
	margin: 0;
}

.erv-hero {
	display: grid;
	grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
	align-items: center;
	gap: clamp(1.2rem, 3.2vw, 2.75rem);
	margin-block: clamp(1.3rem, 2.65vw, 2.15rem) clamp(1.85rem, 3.3vw, 2.65rem);
	padding: clamp(1.4rem, 2.1vw, 1.8rem) clamp(1.6rem, 3.6vw, 3.1rem);
	border: 1px solid #dfeaf0;
	border-radius: 1rem;
	background: linear-gradient(112deg, #f8fbfc, #f4f9fb 47%, #ebf1fa);
	overflow: hidden;
}

.erv-hero h1 {
	margin: 0 0 .85rem;
	font-size: clamp(2.45rem, 4.1vw, 3.6rem);
	line-height: 1.08;
}

.erv-hero h1 span {
	color: var(--erv-teal);
}

.erv-hero p {
	max-width: 29rem;
	margin-bottom: 1.45rem;
	color: var(--erv-muted);
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	text-wrap: pretty;
}

.erv-hero p strong {
	color: var(--erv-ink);
}

.erv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
}

.erv-hero-media {
	position: relative;
	min-height: clamp(15.6rem, 26.75vw, 20.25rem);
	isolation: isolate;
}

.erv-hero-media::before {
	position: absolute;
	inset: .35rem -.9rem .35rem 15%;
	border-radius: 50%;
	background: #e1e9fa;
	content: "";
	transform: rotate(-16deg);
}

.erv-hero-visual {
	position: absolute;
	top: 50%;
	right: -1rem;
	width: min(91%, 24.7rem);
	transform: translateY(-50%);
}

.erv-hero-visual img {
	display: block;
	width: 100%;
	height: auto;
}

.erv-hero-sheet {
	position: absolute;
	bottom: .05rem;
	left: 0;
	width: min(62%, 17.25rem);
	min-width: 11.25rem;
	border: 1px solid #cfdfd8;
	border-radius: .55rem;
	background: #fff;
	box-shadow: 0 .65rem 1.6rem rgb(26 63 81 / 15%);
	overflow: hidden;
}

.erv-hero-sheet table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	color: #273f36;
	font-size: clamp(.65rem, 1vw, .78rem);
	font-variant-numeric: tabular-nums;
	line-height: 1.33;
}

.erv-hero-sheet caption {
	padding: .42rem .57rem;
	background: #226246;
	color: #fff;
	font-size: .79rem;
	font-weight: 700;
	text-align: left;
}

.erv-hero-sheet table :is(th, td) {
	padding: .24rem .35rem;
	border-bottom: 1px solid #e4ede8;
	border-right: 1px solid #e4ede8;
	background: #fff;
	text-align: center;
	white-space: nowrap;
}

.erv-hero-sheet table :is(th, td):last-child {
	border-right: 0;
}

.erv-hero-sheet table th:first-child {
	padding-left: .55rem;
	text-align: left;
}

.erv-hero-sheet table :is(thead, tfoot) :is(th, td) {
	background: #edf5f0;
	font-weight: 700;
}

.erv-hero-sheet table tfoot :is(th, td) {
	border-bottom: 0;
}

.erv-editions,
.erv-shop-comparison {
	scroll-margin-top: 1.25rem;
}

.erv-section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .65rem 1.25rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.erv-section-heading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.7vw, 2.15rem);
}

.erv-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	color: var(--erv-teal);
	font-size: .95rem;
	font-weight: 700;
}

.erv-arrow-link::after {
	display: inline-block;
	width: .35em;
	height: .35em;
	transform: rotate(45deg);
	border-top: .13em solid currentColor;
	border-right: .13em solid currentColor;
	content: "";
}

.erv-edition-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.erv-edition-card {
	display: flex;
	min-width: 0;
}

.erv-storefront a.erv-edition-link {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .85rem;
	min-width: 0;
	padding: .75rem;
	border: 1px solid var(--erv-border);
	border-radius: .55rem;
	color: var(--erv-ink);
	text-decoration: none;
}

.erv-storefront a.erv-edition-link:hover {
	border-color: var(--erv-accent);
	background: #fcfeff;
}

.erv-edition-image {
	display: grid;
	min-height: 7rem;
	place-items: center;
	border-radius: .32rem;
	background: var(--erv-tint);
}

.erv-edition-image img {
	width: min(6.6rem, 100%);
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.erv-edition-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding-inline: .18rem;
}

.erv-edition-body h3 {
	margin: 0 0 .2rem;
	font-size: 1.25rem;
}

.erv-edition-body p {
	margin: 0 0 .8rem;
	color: var(--erv-muted);
	font-size: .91rem;
	line-height: 1.45;
}

.erv-edition-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .2rem .5rem;
	margin-top: auto;
}

.erv-edition-price {
	font-size: 1.27rem;
	font-weight: 700;
	line-height: 1.3;
}

.erv-edition-price del {
	font-size: .82em;
	color: var(--erv-muted);
}

.erv-edition-price ins {
	text-decoration: none;
}

.erv-edition-price .woocommerce-price-suffix {
	display: block;
	margin-top: .12rem;
	color: var(--erv-muted);
	font-size: .74rem;
	font-weight: 400;
}

.erv-storefront #colophon.site-footer {
	--erv-footer-strip: 3.25rem;
	--erv-footer-blue: #0b7691;
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
	padding: clamp(1.9rem, 4vw, 3rem) 0 0;
	background: linear-gradient(to bottom, var(--erv-footer-blue) calc(100% - var(--erv-footer-strip)), var(--erv-navy) 0);
	color: #fff;
}

.erv-footer {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
	gap: 1.65rem 2.5rem;
	padding-bottom: clamp(1.9rem, 4vw, 3rem);
}

.erv-footer-brand {
	display: inline-block;
	margin-bottom: .65rem;
}

.erv-footer-brand img {
	display: block;
	width: auto;
	height: 2.125rem;
	filter: brightness(0) invert(1);
}

.erv-footer address {
	display: grid;
	gap: .13rem;
	justify-items: start;
	margin: 0;
	font-style: normal;
	font-size: .91rem;
}

.erv-storefront #colophon .erv-footer-heading {
	margin: .2rem 0 .72rem;
	color: #fff;
	font-size: 1.1rem;
}

.erv-footer ul {
	display: grid;
	gap: .31rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.erv-storefront #colophon .erv-footer a {
	display: inline-block;
	border-bottom: 0;
	color: #fff;
	text-decoration: none;
}

.erv-storefront #colophon .erv-footer a:hover {
	background: rgb(255 255 255 / 13%);
	border-radius: .2rem;
}

.erv-storefront #colophon a:focus-visible {
	outline-color: #fff;
}

.erv-footer nav {
	font-size: .93rem;
}

.erv-footer-bottom {
	display: flex;
	align-items: center;
	min-height: var(--erv-footer-strip);
	font-size: .84rem;
}

.erv-storefront :is(.button.alt, button.alt, input[type="submit"].alt, #place_order) {
	border-color: var(--erv-teal);
	background: var(--erv-teal);
	color: #fff;
}

.erv-storefront :is(.button.alt, button.alt, input[type="submit"].alt, #place_order):hover {
	border-color: var(--erv-teal-dark);
	background: var(--erv-teal-dark);
	color: #fff;
}

.erv-storefront .wc-block-components-button.contained:not(:disabled) {
	background: var(--erv-teal);
	color: #fff;
}

@media (min-width: 760px) and (max-width: 960px) {
	.erv-edition-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 759px) {
	.erv-header {
		grid-template-columns: 1fr auto;
		gap: .2rem .75rem;
		padding-top: .65rem;
		padding-bottom: .35rem;
	}

	.erv-navigation {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.erv-navigation ul {
		justify-content: flex-start;
		gap: 0 clamp(.85rem, 3.8vw, 1.75rem);
	}

	.erv-storefront #masthead .erv-navigation a {
		padding-block: .62rem .45rem;
		font-size: .9rem;
	}

	.erv-brand img {
		height: 2rem;
	}

	.erv-cart-link {
		grid-column: 2;
		grid-row: 1;
	}

	.erv-hero {
		display: block;
		margin: 0;
		padding: 1.85rem 0;
		border: 0;
		border-radius: 0;
		background: none;
		overflow: visible;
	}

	.erv-hero-media {
		display: none;
	}

	.erv-hero h1 {
		font-size: clamp(2.1rem, 9.5vw, 3.2rem);
	}

	.erv-hero p {
		margin-bottom: 1.05rem;
	}

	.erv-hero-actions {
		gap: .4rem;
	}

	.erv-hero-actions .erv-button {
		padding-inline: .66rem;
		font-size: .875rem;
	}

	.erv-editions {
		padding-top: 1.2rem;
		border-top: 1px solid var(--erv-border);
	}

	.erv-edition-grid {
		grid-template-columns: 1fr;
		gap: .55rem;
	}

	.erv-storefront a.erv-edition-link {
		flex-direction: row;
		align-items: center;
		gap: .65rem;
		padding: .56rem;
	}

	.erv-edition-image {
		width: 3.7rem;
		min-height: 3.7rem;
		flex: none;
	}

	.erv-edition-image img {
		width: 3.15rem;
	}

	.erv-edition-body h3 {
		margin: 0;
		font-size: 1.07rem;
	}

	.erv-edition-body p {
		margin-bottom: .16rem;
		font-size: .83rem;
	}

	.erv-edition-price {
		font-size: 1rem;
	}

	.erv-edition-price .woocommerce-price-suffix {
		display: inline;
	}

	.erv-edition-details {
		font-size: .82rem;
	}

	.erv-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.45rem 1rem;
	}

	.erv-footer-company {
		grid-column: 1 / -1;
	}
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/roboto-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(assets/roboto-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(assets/roboto-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(assets/roboto-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
