/* Skjul pilene fra mængdeinputfeltet */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important; /* Skjul i WebKit-browsere */
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important; /* Skjul i Firefox */
    /* appearance: none !important; */ /* Skjul i nyere browsere */
}

@-moz-document url-prefix() {
    .woocommerce .quantity .qty {
        -moz-appearance: textfield !important; /* Skjul pilene i Firefox */
        margin: 0 !important;
        text-align: center !important;
        width: 80px !important;
        font-size: 16px !important;
        padding: 5px !important;
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
    }
    .woocommerce .quantity .qty::-moz-inner-spin-button,
    .woocommerce .quantity .qty::-moz-outer-spin-button {
        display: none !important; /* Tving pilene til at forsvinde */
    }
}

.custom-quantity-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 3px;
    flex-direction: row;
    justify-content: center;
	align-items: center;
}

@media (max-width: 600px) {
    /*
	.custom-quantity-selector {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
	*/
	/* Ændre til 1 stk visning*/
	ul.products.elementor-grid.columns-4{
		
		grid-template-columns: repeat(1, 1fr);
		
	}
}

.minus_input_plus {
    display: flex
;
}

.custom-quantity-selector .minus,
.custom-quantity-selector .plus {
    /*background: #ccc;
    border: none;*/
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
	min-width: 33px;
    font-weight: 700;
}

.custom-quantity-selector .minus:Hover,
.custom-quantity-selector .plus:Hover {
	background-color: #991227;	
}	

.custom-quantity-selector .qty {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
}

button.laegIKurvKnap {
    background-color: #991227;
    color: white;
	padding: 6px 10px;
	margin-top: unset !important;
}


/* Flex-container til hele produktet */

.custom-product-container {
    display: flex;
    flex-direction: column;
	justify-content: space-between;
	border: solid 1px;
	min-height: 430px;
} 

@media (max-width: 768px) {
	.custom-product-container {
		min-height: 465px;
	}
}
/*
@media (max-width: 480px) {
	.swiper-wrapper .custom-product-container {
		min-height: 604px;
	}
}		
*/
.custom-product-inner-container1 {
   display: flex;
   flex-direction: row;
   flex-grow: 1;
   position: relative; /* Gør den til referencepunkt for overlay */
}

/* Overlay-link, der dækker containeren */
.custom-product-inner-container1 .product-overlay,
.custom-product-inner-container1-vinkasse .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-image-container {
    width: 35%;
    position: relative;
}

.product-image {
	position: absolute;
	top: 15px;
    left: -78px;
    right: -78px;
}

@media (max-width: 768px) {
	.product-image {
    left: -57px;
    right: -57px;
	}
}

.product-text {   
    flex: 1;
	display: flex;
    flex-direction: column;
	justify-content: space-between;
}
/*
h5.woocommerce-loop-product__title {
    min-height: 130px;
}

h5.kg_titel_produktlist {
    min-height: 115px;
}
*/
/* Fjerne star rating fra elementor standard */
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link .star-rating {
    display: none !important;
}

p.price {
    margin-bottom: 0px !important;
	max-width: 138px;
}

p.kg_price_ikke_tilbud,
p.price.kg_price_tilbud,
p.kg_price_ikke_tilbud-vinkasse {
    font-size: 32px;
    font-weight: 600;
    color: #991226;
}

/* Fjern understregning fra den nye pris */
.price.kg_price_tilbud ins {
    text-decoration: none;
}

/* Tilpas den gamle pris (gennemstregning) */
.price.kg_price_tilbud del {
  font-size: 25px;  
}


.kg_afstand_produkt_list_pris{
 height: 48px;
}

@media (max-width: 767px) {
	.kg_afstand_produkt_list_pris{
		height: 8.1vw;
	}
}	
	

span.kg_v6kasser_tekst {
    font-size: 14px;
}
/*
@media (max-width: 500px) {
	span.kg_v6kasser_tekst {
		font-size: 10px;
	}	
}
*/
span.kg_v6kasser_tekst_under {
    margin-top: auto;
    margin-bottom: 3px;
    color: #991227;
}

.produkter_medaljer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fjerne understrægningen på tilbudsprisen på enkelt produkt */

.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none; 
}

/* Design ved vin kasser */
/*
.custom-product-inner-container1-vinkasse {
    position: relative;
}
*/
.custom-product-inner-container1-vinkasse {
    display: flex;
    flex-direction: column;
    align-items: center;
	flex: 1;
	position: relative; /* Gør den til referencepunkt for overlay */

}

.product-image-container-vinkasse {
    transform: scale(0.9);
    transform-origin: top;
	min-height: 129px;
/*	margin-top: -33px;
	margin-bottom: -72px; */
}

.product-image-vinkasse {
    margin-top: -50px;
    margin-bottom: -62px;
}

@media (max-width: 500px) {
	.product-image-vinkasse {
		margin-top: -21px;
		margin-bottom: -38px;
	}
}



/* Flex-container til hele produktet - SLUT */

/* Tilbuds Banner */

.single-product .onsale {
    /* top: unset !important;
    right: unset !important;*/
}

span.onsale.enkelt_onsale {
    display: block;
    background-color: #991227 !important;
    min-width: 64px !important;
    min-height: 32px !important;
    line-height: 32px !important;
    left: auto !important;
    right: 0 !important;
    margin: -16px !important;
}

/* Tilbuds Banner - SLUT */

/* læg i kurv under kategori */
body.archive .woocommerce ul.products li.product .ajax_add_to_cart {
    background-color: #991227;
	color: #ffffff;
	padding: 10px;
	
}

/* læg i kurv forside */
body .woocommerce ul.products li.product .ajax_add_to_cart {
    background-color: #991227; 
	color: #ffffff;
	margin-top: unset;
	/* padding: 5px; */
	font-weight: 700;
	
}

/* læg i kurv enkelt produkt */
body.single-product .ajax_add_to_cart {
     background-color: #991227 !important; 
	 color: #ffffff !important;
}

/*Enkelt produkt */

a.woocommerce-product-gallery__trigger {
    margin-right: 109px;
}

ol.flex-control-nav.flex-control-thumbs {
    margin-top: 20px !important;
    margin-left: 113px !important;
    margin-right: 112px !important;
}

/* Kategori */

mark.count {
    display: none;
}

li.product-category.product {
    border: solid 1px;
    box-shadow: 5px 6px;
    border-color: rgb(171 171 171);
}

.woocommerce ul.products li.product a img {
	/* margin: 0 !important; */
	margin-top: 10px !important;
	margin-bottom: 10px !important;
}


li.product-category.product:Hover {
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
   -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

/* Vis topbar når der tilføjes til kurv */

#cart-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #991227;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 999999;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

a.added_to_cart.wc-forward {
    display: none !important;
}

/* Oversigt indhold af vin kasse */

.flaskeOversigtVinKasse {
    font-weight: 600;
    font-size: x-large;
}

#vin-kasse-container {
    display: flex;
    gap: 10px;
    justify-content: center; /* Centrer flaskerne */
    /*overflow: hidden;*/ /* Fjern scrollbaren */
	overflow: visible
    flex-wrap: nowrap;
}

.vin-thumbnail {
    width: 15%; /* Flaskerne skaleres til at være ens */
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s ease; /* Tilføj hover-effekt */
}

.vin-thumbnail:hover {
   /* transform: scale(1.1);
    border-color: #aaa; */
	border: solid 2px;
}

.vinDetaljerPrFlaske {
    width: 60%;
}

#vin-details {
    margin-top: 10px;
	padding-top: 20px;
    text-align: center;
	display: flex;
	border: solid 1px red;
	min-height: 440px;

}

div#vin-detail-image-box {
    width: 36%;
}

@media (max-width: 640px) {
	div#vin-detail-image-box {
		display:none;
	}
	
	.vinDetaljerPrFlaske {
		width: 100%; 
	}
}



.vin-detail-image {
    /*max-height: 300px;
    margin-bottom: 10px;*/
	transform: scale(1.3);
    transform-origin: top;
    padding-top: 15px;
}

.vin-detail-name {
    font-size: 22px;
    font-weight: bold;
}

.vin-detail-description {
    font-size: 14px;
    color: #555;
}

.vin-detail-price {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.vin-detail-attributes {
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
	font-size: 18px;
}

td.vin-attribute-label {
   width: 42%;
   text-align: center !important;
   font-weight: 700;
}

.vin-detail-attributes td {
    padding: 5px;
    border: 1px solid #ddd;
	text-align: left;
	
    padding-left: 14px;
	align-content: center;
}

@media (max-width: 640px) {
	.vin-detail-attributes tbody {
		font-size: 3.8vw;
	}
}


.vin-thumbnail-wrapper {
    position: relative; /* Gør det muligt at placere pseudo-elementet */
    display: inline-block; /* Sørger for, at wrapper tilpasser sig billedet */
    cursor: pointer;
}

.vin-thumbnail-wrapper.selected::after {
    content: "▼"; /* Pil ned symbol */
    position: absolute;
    bottom: -15px; /* Placer pilen under billedet */
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: red;
}

.vin-thumbnail {
    width: 100%; /* Billedet skaleres inden for wrapperen */
    height: auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vin-thumbnail-wrapper.selected .vin-thumbnail {
    border: solid 2px red;
}

/* Menu kategori VIN KASSER */

.elementor-element-335da67 .custom-product-inner-container1{
	position: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: space-evenly;
}	

.elementor-element-335da67 .custom-product-inner-container1 .product-overlay{
	height: 88%;
}

.elementor-element-335da67 .product-image{
	position: unset;
    transform: scale(2.2);
    transform-origin: center;
	
}	

.elementor-element-335da67 .product-text{
	flex: 0;
	text-align: center;
}

.elementor-element-335da67 h5.woocommerce-loop-product__title{
	
	min-height: unset;
}

.elementor-element-25a5d95 .woocommerce-product-gallery__wrapper {
    transform: scale(0.75) !important;
    transform-origin: left !important;
}

/* Vin data */
.woocommerce table.shop_attributes th {
	width: 41% !important;
	font-size: 18px;

}


.woocommerce table.shop_attributes td {
    padding-left: 17px !important;
    font-size: 18px;
    font-style: normal !important;
    align-content: center;
}

/* Baggrundsoverlay */
#cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup container */
#cart-popup {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Popup indhold */
.cart-popup-content {
    font-size: 16px;
    color: #333;
}

/* Luk-knap */
#cart-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

#cart-popup-close:hover {
    color: #e74c3c;
}

.swiper-button-prev,
.swiper-button-next{
	color:#991227 !important;
}

.swiper-slide p.price{
	color: #991227;
    font-family: "Roboto", Sans-serif;
    font-size: 32px;
    font-weight: 600;
	
}

.swiper-slide del {
	font-family: "Roboto", Sans-serif;
    font-size: 25px;
    font-weight: 600;
	opacity: .5;
}

.swiper-slide ins {
    text-decoration: unset;
}

/* Produkt visning billede */
@media (max-width: 767px) {
	/*
	.woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4.images{
		margin-bottom: unset;
		
	}
	
	.elementor-element.elementor-element-fab4889.e-con-full.e-flex.e-con.e-child {
		transform: scale(1.2);
		z-index: 1; 
		margin-left: 10px;
	}
	
	a.woocommerce-product-gallery__trigger {
		margin-top: -20px;
		margin-right: unset;
		right: 0px !important;
	}
	*/
	
	.woocommerce div.product div.images img{
		width: 300px !important;
		margin-left: auto;
		margin-right: auto;		
	}	
	
	ol.flex-control-nav.flex-control-thumbs{
		margin-left: auto !important;
		margin-right: auto !important;	
	}
	
	a.woocommerce-product-gallery__trigger{
		top: unset !important;
		margin-right: unset !important;
	}
	
	
}	