/* ============================================================
   PRODUCTINFORMATIE
   ============================================================ */

:root {
    --kolombreedte2: 145px;
    --button_hoogte: 125px;
    --bestelinformatie-achtergrond: #eee;
}


/* ============================================================
   GEBASSEERD OP PRODUCTINFO 2.0
   ============================================================ */

.productinformatie {
    display: flex;
}



main {
    min-width: 0;
}

.topinfo h1, .productinformatie h2 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-indent: 15px;
	justify-content: left;
}

/* ============================================================
   BESTEL INFORMATIE (WINKELMANDJE)
   ============================================================ */

.bestelinformatie {
	display: flex;
	padding: 5px;
	box-sizing: border-box;
	border: 1px solid var(--productinfo_border_color);
	background-color: var(--productinfo_bestelinfo_background_color);
	margin: 0 5px 0 5px;
}

.bestelinformatie_links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 165px;
    min-width: 165px;
	min-height: 160px;
}

.bestel_foto {
    max-height: 150px;
    max-width: 150px;
}

.bestelinformatie_rechts {
	width: 100%;
    display: flex;
    flex-direction: column;
}

.prijs {
    margin-left: auto;
    text-align: right;
}

.verkoopprijs {
	color: red;
	font-size: 24px;
	font-weight: 900;
}

.kwantum_info {
	color: grey;
	font-size: 10px;
}

.bestelkolom_boven td:first-child {
    font-weight: bold;
	color: blue;
	padding-right: 10px;
}

.bestelkolom_onder {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.bestelkolom_onder .prijs {
    margin-left: auto;
    text-align: right;
}

.bestelbutton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 40px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #1f65b5;
    color: #eee;
    position: absolute;
    bottom: 5px;
    right: 12px;
    text-decoration: none;
}

.bestelbutton:hover {
    background-color: #5194e1;
    color: #fafafa;
    transition: background-color 0.3s ease;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumb {
    font-size: 0.7em;
    color: red;
    margin-bottom: 8px;
    margin-left: 5px;
}

.breadcrumb a {
    font-size: 1em;
    color: #0000ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #a0a0ff;
    text-decoration: underline;
}

/* ============================================================
   PRODUCTINFORMATIE KOLOM 1
   ============================================================ */

.productinformatie_kolom_1 {
    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--productinfo_border_color);
}

.specificaties {
    display: grid;
    grid-template-columns: 300px auto;
    gap: 5px;
    padding: 5px;
}

.specificaties h2 {
    grid-column: span 2;
}

.specificaties h3,
.specificaties leftkolom {
    grid-column: 1;
    font-weight: bold;
    color: var(--h3_font_color);
}

.specificaties h4,
.specificaties nokolom {
    grid-column: span 2;
    margin-top: 0;
    font-weight: normal;
}

.specificaties
    :not(h2):not(h3):not(h4):not(leftkolom):not(nokolom) {
    grid-column: 2;
}

.specificaties li {
    position: relative;
    padding-left: 1.2em;
    text-indent: 0;
    list-style: none;
}

.specificaties li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: black;
}

.specificaties a {
    color: red;
    transition: color 0.5s ease;
}

.specificaties a:hover {
    color: blue;
}

/* ============================================================
   PRODUCTAFBEELDINGEN
   ============================================================ */

.productinformatie_kolom_2 {
    flex: 0 0 var(--kolombreedte2);

    display: flex;
    flex-direction: column;
    align-items: center;

    border: 1px solid var(--productinfo_border_color);
    border-right: none;
}

.foto {
    display: flex;
    height: var(--button_hoogte);
    width: 125px;
    flex: 0 0 125px;

    align-items: center;
    justify-content: center;

    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	margin: 5px 5px 0 0;
    box-sizing: border-box;
}

.foto img {
    max-height: 97%;
    max-width: 95%;
    width: auto;
    object-fit: contain;
}

.foto:hover {
    border: 1px solid black;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}


/* ============================================================
   TERUGKNOP
   ============================================================ */

.terug:hover {
    color: red;
}

/* ============================================================
   BARCODE INFORMATIE
   ============================================================ */

.barcode {
    display: flex;
    flex-wrap: wrap;
	margin: 0 5px 0 5px;
    gap: 5px;
}

.barcode div {
    width: 33%;
}

/* ============================================================
   FABRIEKSCODE INFORMATIE
   ============================================================ */

.fabriekscode {
    display: flex;
    flex-wrap: wrap;
	margin: 0 5px 0 5px;
    gap: 5px;
}

.fabriekscode div {
    width: 25%;
}

/* ============================================================
   COMPATIBLE INFORMATIE
   ============================================================ */

.compatible {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
	margin: 0 5px 0 5px;
}

.compatible div {
    width: 30%;
}

/* ============================================================
   PDF DOCUMENTEN
   ============================================================ */

.pdf_container {
    display: flex;
    flex-wrap: wrap;
	margin: 0 5px 0 5px;
}

.pdflink,
.fabrikant_link {
    margin-bottom: 5px;
}

.pdflink a,
.fabrikant_link a {
    text-decoration: none;
    color: blue;
    transition: color 0.5s ease;
}

.pdflink a:hover,
.fabrikant_link a:hover {
    text-decoration: underline;
    color: red;
}

.pdf_container,
.fabrikant_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.pdflogo img,
.urllogo img {
    height: 3em;
    margin: 0 20px 10px 10px;
}

/* =========================================
   FOTO LIGHTBOX
   ========================================= */

.foto-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0, 0, 0, 0.85);

    align-items: center;
    justify-content: center;
}

.foto-lightbox.actief {
    display: flex;
}


/* Afbeelding + teller */

.foto-lightbox-inhoud {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 90vw;
    height: 90vh;
}

#fotoLightboxAfbeelding {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}


/* Sluiten */

.foto-lightbox-sluiten {
    position: absolute;

    top: 20px;
    right: 30px;

    z-index: 2;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.15);
    color: white;

    font-size: 32px;
    line-height: 40px;

    cursor: pointer;
}

.foto-lightbox-sluiten:hover {
    background-color: rgba(255, 255, 255, 0.30);
}


/* Vorige / volgende */

.foto-lightbox-vorige,
.foto-lightbox-volgende {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 2;

    width: 50px;
    height: 70px;

    border: none;
    border-radius: 8px;

    background-color: rgba(255, 255, 255, 0.15);
    color: white;

    font-size: 32px;

    cursor: pointer;
}

.foto-lightbox-vorige {
    left: 20px;
}

.foto-lightbox-volgende {
    right: 20px;
}

.foto-lightbox-vorige:hover,
.foto-lightbox-volgende:hover {
    background-color: rgba(255, 255, 255, 0.30);
}


/* Teller */

.foto-lightbox-teller {
    position: absolute;

    bottom: 10px;
    left: 50%;

    transform: translateX(-50%);

    padding: 4px 10px;

    border-radius: 10px;

    background-color: rgba(0, 0, 0, 0.55);
    color: white;

    font-size: 13px;
}

/* ============================================================
   BESTELBUTTON ANIMATION
   ============================================================ */

.bestel-fly {
    position:fixed;
    z-index:99999;
    margin:0;
    pointer-events:none;

    transition:
        left 0.6s ease-in-out,
        top 0.6s ease-in-out,
        transform 0.6s ease-in-out,
        opacity 0.6s ease-in-out;
}

.winkelwagen-animatie {
    animation:winkelwagen-pop 0.35s ease;
}

@keyframes winkelwagen-pop {
    0%   { transform:scale(1); }
    50%  { transform:scale(1.25); }
    100% { transform:scale(1); }
}


/* ============================================================
   EINDE INFO
   ============================================================ */
.einde_info {
	height: 15px;
}


/* ============================================================
   @MEDIA SECTION
   ============================================================ */

@media only screen and (max-width: 768px) {

    .foto-lightbox-inhoud {
        width: 100vw;
        height: 100vh;
    }

    #fotoLightboxAfbeelding {
        max-width: 94vw;
        max-height: 80vh;
    }

    .foto-lightbox-sluiten {
        top: 10px;
        right: 10px;
    }

    .foto-lightbox-vorige,
    .foto-lightbox-volgende {
        width: 40px;
        height: 55px;

        font-size: 26px;
    }

    .foto-lightbox-vorige {
        left: 8px;
    }

    .foto-lightbox-volgende {
        right: 8px;
    }
}


/* ============================================================
   MOBIELE WEERGAVE
   ============================================================ */

@media only screen and (max-width: 768px) {

/* ============================================================
   GEBASSEERD OP PRODUCTINFO 2.0
   ============================================================ */

.productinformatie, .topinfo {
	margin: 0px 5px 0 5px;
}

	.bestelinformatie_links {
        display: none; 
    }
	
    .specificaties {
        font-size: 1.1em;
        grid-template-columns: minmax(160px, 35%) 1fr;
    }

    .productinformatie {
        flex-direction: column;
    }

    /* --------------------------------------------------------
       Foto's
       --------------------------------------------------------

       De foto's worden op mobiel niet meer onder elkaar
       geplaatst, maar vormen één horizontale swipebare rij.
       De browser zorgt zelf voor touch/swipe-bediening.
       -------------------------------------------------------- */

	.productinformatie_kolom_2 {
		order: 1;
	}

	.productinformatie_kolom_1 {
		order: 2;
	}

	.productinformatie_kolom_2 {
		display: flex;

		flex-direction: row;
		flex-wrap: nowrap;

		justify-content: flex-start;
		align-items: center;

		width: 100%;
		margin: 0 15px 5px 5px;
		gap: 10px;
		padding: 5px;

		box-sizing: border-box;

		overflow-x: auto;
		overflow-y: hidden;

		border-right: 1px solid blue;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.productinformatie_kolom_2 > a {
		display: block;
		flex: 0 0 auto;

		margin: 0;

		scroll-snap-align: start;
	}

	.foto {
		width: 90px;
		height: 90px;
		flex: 0 0 90px;

		margin: 0;
	}

	.foto img {
		max-width: 95%;
		max-height: 95%;
	}

}

