/* PRESETS */

.h-home p {
	line-height: 1.5;
}

/* SLIDER */

.h-home .slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.h-home .slider {
	display: flex;/* zakaj */
}

.h-home .products {
	display: flex;
	padding: 0;
	margin: 0;
	transition: transform 0.5s ease; /* Dodan prehod za gladko premikanje */
}

.h-home .products .product {
        margin-left: 4vw;
}

.h-home .products .product {
	flex: 0 0 calc((100vw - 4vw * 4) / 3.5);
}

.h-home .prev, .h-home .next {
	position: absolute;
	top: 50%;
	background-color: #235d39;
	color: #EEEEEE;
	border: none;
	cursor: pointer;
	padding: 0;
	height: 2vw;
	width: 2vw;
	font-size: 1vw;
}

.h-home .prev {
	left: 0;
}

.h-home .next {
	right: 0;
}

@media only screen and (max-width: 768px) {
.h-home .products .product {
	flex: 0 0 calc((100vw - 4vw * 4) / 1.5);
}

.h-home .prev, .h-home .next {
	height: 8vw;
	width: 8vw;
	font-size: 4vw;
}
}


/* PRODUCTS */

.h-home .screen-reader-text {
	display: none;
}

.h-home .kolicina {
	display:none;
}

.h-home .izberi {
	display:none;
}

.h-home .kratek {
	text-align: left; /* popravi na mobile shop */
}

.h-home .add_to_cart_button {
	width: 4vw;
	height: 4vw;
	display: block;
	border: solid #235d39 0.2vw;
	float: right;
	font-size: 0;
	background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/add-green.svg");
	background-repeat: no-repeat;
	background-size: cover;
}

.h-home .add_to_cart_button:hover {
	background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/add-white.svg");
}

.h-home .price {
	font-size: 1.25vw; /* nepotrebn css */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border: solid #235d39;
	float: left;
	height: 4vw;
	width: calc(100% - 4vw);
	padding-left: 2vw;
	border-width: 0.2vw 0 0.2vw 0.2vw;
}

.h-home .product h2 {
	padding: 2vw 2vw 1vw 2vw;
	font-size: 1.25vw;
	text-transform: uppercase;
	border: solid #235d39;
	border-width: 0 0.2vw 0 0.2vw;
}

.h-home .product p {
	line-height: 1.5;
	padding: 0 2vw 2vw 2vw;
	font-size: 0.75vw;
	border: solid #235d39;
	border-width: 0 0.2vw 0 0.2vw;
}

.h-home .h-from {
	font-family: hempika-light;
	color: #000000;
	font-size: 0.75vw;
	display: block;
	padding-right: 0.25vw;
}

.h-home .product img {
	padding-top: 3vw;
	border: solid #235d39;
	border-width: 0.2vw 0.2vw 0 0.2vw;
}

@media only screen and (max-width: 768px) {

.h-home .add_to_cart_button {
	width: 12vw;
	height: 12vw;
	border: solid #235d39 0.8vw;
}

.h-home .price {
	font-size: 4vw;
	height: 12vw;
	width: calc(100% - 12vw);
	padding-left: 4vw;
	border-width: 0.8vw 0 0.8vw 0.8vw;
}

.h-home .product h2 {
	padding: 4vw 4vw 4vw 4vw;
	font-size: 4vw;
	border-width: 0 0.8vw 0 0.8vw;
}

.h-home .product p {
	padding: 0 4vw 4vw 4vw;
	font-size: 3vw;
	border-width: 0 0.8vw 0 0.8vw;
	/*display: none;*/
}

.h-home .h-from {
	font-size: 3vw;
	padding-right: 1vw;
}

.h-home .product img {
	padding-top: 8vw;
	border-width: 0.8vw 0.8vw 0 0.8vw;
}
}

/*------------------------ INFINITY TEXT ----------------------------------*/
/* https://www.myoussouf.com/blog/horizontal-scrolling-text-css */

.h-home-infinity-text {
	width: 100%;
	overflow: hidden;
	display: flex;
	white-space: nowrap;
	background-color: #235d39;
	padding: 1vw 0;
	margin-bottom: 4vw;
}

.h-home-infinity-text-elements {
	display: inline-flex;
	animation: h-infinity-scroll 60s linear infinite;
}

.h-home-infinity-text-elements span {
	font-family: "hempika-bold";
	color: #FFFFFF;
	font-size: 1vw;
	margin: 0 1vw;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Specific animation for seamless scrolling */
@keyframes h-infinity-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0); /* Adjusted for seamless repeat */
	}
}

/* Media Query for Responsive Behavior */
@media only screen and (max-width: 768px) {
	.h-home-infinity-text {
		padding: 4vw 0;
		margin-bottom: 24vw;
	}

	.h-home-infinity-text-elements span {
		font-size: 4vw;
		margin: 0 2vw;
	}
}

/*------------------------ BENEFITS----------------------------------*/

.h-home-benefits {
	padding: 8vw 0;
}

.h-home-benefits-intro {
	text-align: center;
	padding-bottom: 4vw;
}

.h-home-benefits-intro h2{
	margin-bottom: 1vw;
	padding: 0 36vw;
}

.h-home-benefits-intro p {
	margin-bottom: 2vw;
	padding: 0 36vw;
}

.h-home-benefits-list {
	display: flex;
	flex-wrap: wrap;
	padding: 0 12vw;
}

.h-home-benefits-list div {
	width: 33.33%;
	padding: 0 4vw;
	text-align: center;
}

.h-home-benefits-list img {
	width: 5vw;
	display: inline-block;
}

.h-home-benefits-list h3 {
	text-transform: uppercase;
	margin: 1vw 0;
}

.h-home-benefits-list p {
	font-size: 0.75vw;
}

@media only screen and (max-width: 768px) {
.h-home-benefits {
	padding: 24vw 8vw 18vw 8vw;
}

.h-home-benefits-intro {
	padding-bottom: 6vw;
}

.h-home-benefits-intro h2{
	margin-bottom: 4vw;
	padding: 0 8vw;
}

.h-home-benefits-intro p {
	margin-bottom: 6vw;
	padding: 0;
}
	
.h-home-benefits-intro a {
	padding: 4vw 8vw;
}

.h-home-benefits-list {
	padding: 0;
}

.h-home-benefits-list div {
	width: 100%;
	padding: 6vw;
}

.h-home-benefits-list img {
	width: 20vw;
}

.h-home-benefits-list h3 {
	margin: 4vw 0;
}

.h-home-benefits-list p {
	font-size: 4vw;
}
}

/*------------------------ SUBSCRIBE ----------------------------------*/
		
.h-home-subscribe {
	text-align: center;
	padding: 4vw 32vw 3vw 32vw;
	background-color: #235d39;
	position: relative;
}

.h-home-subscribe h2 {
	color: #EEEEEE;
	margin-bottom: 0.5vw;
	text-transform: uppercase;
}

.h-home-subscribe p {
	color: #EEEEEE;
	margin-bottom: 1vw;
}

.h-home-subscribe img {
	display: inline;
	width: 4vw;
	position: absolute;
	bottom: 4vw;
	left: 65vw;
}

.h-home-subscribe form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.h-home-subscribe input[type="email"] {
	width: 66.66%;
	border: solid 0.2vw #EEEEEE;
	color: #EEEEEE;
}

.h-home-subscribe input[type="email"]::placeholder {
	color: #EEEEEE;
	opacity: 0.5;
}

.h-home-subscribe input[type="submit"] {
	width: 33.33%;
	background-color: #EEEEEE;
	color: #235d39;
	border: solid 0.2vw #EEEEEE;
	text-transform: uppercase;
}

.h-home-subscribe input[type="submit"]:hover {
	cursor: pointer;
}

.h-home-subscribe .gdpr-msg {
	font-family: "hempika-bold";
	color: #EEEEEE;
	margin-top: 1vw;
}

.h-home-subscribe .gdpr-msg a {
	color: #EEEEEE;
	font-size: 0.75vw;
}

.h-home-subscribe .gdpr-msg a:hover {
	text-decoration: underline;
}

@media only screen and (max-width: 768px) {
	
.h-home-subscribe {
	text-align: center;
	padding: 12vw 4vw 8vw 4vw;
}

.h-home-subscribe h2 {
	margin-bottom: 2vw;
	font-size: 5vw;
}

.h-home-subscribe p {
	margin-bottom: 4vw;
	font-size: 3vw;
}

.h-home-subscribe img {
	width: 12vw;
	bottom: 6vw;
	left: 86vw;
}

.h-home-subscribe form {
	padding: 0 4vw;
}

.h-home-subscribe input[type="email"] {
	width: 50%;
	border: solid 0.8vw #EEEEEE;
	color: #EEEEEE;
}

.h-home-subscribe input[type="submit"] {
	width: 50%;
	border: solid 0.8vw #EEEEEE;
}

.h-home-subscribe .gdpr-msg {
	display:none;
}
}


/*------------------------ LEARN ----------------------------------*/

.h-home-learn {
	display: flex;
	flex-wrap: wrap;
	padding: 6vw 11vw 0 11vw;
}

.h-home-learn-left {
	width: 50%;
	text-align: center;
}

.h-home-learn-right {
	width: 50%;
}

.h-home-learn-left p {
	margin: 2vw 0;
}

.h-home-learn-left-wrap {
	padding: 10vw 6vw 8vw 6vw; /* ulovljeno na očke. To je treba naknadno ulovit, da bo naredilo avtomatski padding zgoraj in spodaj, če bodo naslovi člankov v 2 vrsticah oz. daljši opisi prevodov.*/
	border: solid #235d39 0.2vw;
	margin: 1vw;
}

.h-home-learn-wrap {
	padding: 2vw;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	border: solid #235d39 0.2vw;
}

.h-home-learn-article {
	padding: 1vw;
}

.h-home-learn-img-hemp {
	background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/hemp-icon.svg");
	background-repeat: no-repeat;
	background-size: cover;
	height: 3vw;
	width: 3vw;
}

.h-home-learn-img-cbd {
	background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/cbd-icon.svg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	height: 3vw;
	width: 3vw;
}

.h-home-learn-img-cannabinoids {
	background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/cannabinoids-icon.svg");
	background-repeat: no-repeat;
	background-size: cover;
	height: 3vw;
	width: 3vw;
}

.h-home-learn-text {
	width: calc(100% - 3vw);
	padding-left: 2vw;
}

.h-home-learn-text p {
	font-size: 1vw;
}


.h-home-learn-text p:first-child {
	font-size: 1.25vw;
	color: #235D39;
	font-family: "hempika-bold";
	line-height: 1; /* spremeni če bodo v 2 vrsticah naslovi*/
	margin-bottom: 1vw;
}

.h-home-learn-wrap:hover {
    background-color: #235d39;
}
.h-home-learn-wrap:hover .h-home-learn-text a {
    color: #FFFFFF;
}
.h-home-learn-wrap:hover .h-home-learn-text p {
    color: #FFFFFF;
}
.h-home-learn-wrap:hover .h-home-learn-img-hemp {
    background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/hemp-icon-white.svg");
}
.h-home-learn-wrap:hover .h-home-learn-img-cbd {
    background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/cbd-icon-white.svg");
}
.h-home-learn-wrap:hover .h-home-learn-img-cannabinoids {
    background-image: url("https://hempika.com/wp-content/themes/hemp-master/custom/img/cannabinoids-icon-white.svg");
}

@media only screen and (max-width: 768px) {
	
.h-home-learn {
	display: flex;
	flex-wrap: wrap;
	padding: 24vw 2vw 12vw 2vw;
}

.h-home-learn-left {
	width: 100%;
}

.h-home-learn-right {
	width: 100%;
}

.h-home-learn-left p {
	margin: 4vw 0 6vw 0;
}

.h-home-learn-left-wrap {
	padding: 0 0 6vw 0; /* ulovljeno na očke. To je treba naknadno ulovit, da bo naredilo avtomatski padding zgoraj in spodaj, če bodo naslovi člankov v 2 vrsticah oz. daljši opisi prevodov.*/
	border: none;
	margin: 1vw;
}
	
.h-home-learn-left a {
  padding: 4vw 8vw;
}

.h-home-learn-wrap {
	padding: 8vw;
	border: solid #235d39 0.8vw;
}

.h-home-learn-article {
	padding: 2vw;
}

.h-home-learn-img-hemp {
	height: 12vw;
	width: 12vw;
}

.h-home-learn-img-cbd {
	height: 12vw;
	width: 12vw;
}

.h-home-learn-img-cannabinoids {
	height: 12vw;
	width: 12vw;
}

.h-home-learn-text {
	width: calc(100% - 12vw);
	padding-left: 8vw;
}

.h-home-learn-text p {
	font-size: 3vw;
}


.h-home-learn-text p:first-child {
	font-size: 5vw;
	margin-bottom: 4vw;
}	
}

/*------------------------ BANNER ----------------------------------*/
		
.h-home-banner {
	background-color: #235d39;
	text-align: center;
	padding: 10vw 0;
	position: relative;
}

.h-home-banner h1 {
	color: #EEEEEE;
	text-transform: uppercase;
	font-size: 2.5vw;
}

.h-home-banner p {
	margin: 1vw 35vw 1.5vw 35vw;
	color: #EEEEEE;
}

.h-home-banner a {
	padding: 1vw 2vw;
	display: inline-block;
	color: #EEEEEE;
	border: solid #EEEEEE 0.2vw;
	width: 18vw;	
	text-transform: uppercase;
}


.h-home-banner a:hover {
	background-color: #EEEEEE;
	color: #235d39;
}

.h-home-banner img {
	width: 4vw;
	position: absolute;
	bottom: 9vw;
	left: 56vw
}

@media only screen and (max-width: 768px) {
	
.h-home-banner {
	padding: 28vw 12vw 18vw 12vw;
}

.h-home-banner h1 {
	font-size: 8vw;
}

.h-home-banner p {
	margin: 4vw 0 6vw 0;
}

.h-home-banner a {
	padding: 4vw 4vw;
	border: solid #EEEEEE 0.8vw;
	width: 90%;	
}

.h-home-banner img {
	width: 16vw;
	bottom: 16vw;
	left: 76vw
}
}