/*
 * Les Hollés — Single Product Stylesheet (v2 - fixed main image)
 * Plaats in: jouw-child-theme/assets/css/les-holles-product.css
 */

.lh-product-page *,
.lh-product-page *::before,
.lh-product-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Layout ── */
.lh-product-page {
    display: flex;
    gap: 0;
    margin: 100px auto 50px;
    padding: 2rem 1.5rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1a1a1a;
	width: 100%;
}

/* ══════════════════════════════════
   LEFT COLUMN — Gallery
══════════════════════════════════ */
.lh-gallery {
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
	width: 33%;
	flex: 33%;
	justify-content: space-between;
}

.lh-gallery__counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #333;
}

.lh-counter-text {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.lh-arrow {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: black;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
}
.lh-arrow:hover { opacity: 0.5; }


.lh-counter-text {
	font-family: Microsoft Himalaya;
	font-weight: 400;
	font-style: Regular;
	font-size: 40px;
	leading-trim: NONE;
	line-height: 140%;
	text-align: center;
	    position: relative;
    top: 8px;
}

.lh-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lh-thumb {
    cursor: pointer;
    border: 1.5px solid transparent;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: border-color 0.2s;
    background: #f5f4f2;
}

.lh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lh-thumb--active,
.lh-thumb:hover {
    border-color: #1a1a1a;
}

/* Accordions desktop */
.lh-accordions {
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.lh-accordions--mobile { display: none; }

.lh-accordion { border-bottom: 1px solid #e0e0e0; }

.lh-accordion__toggle {
	font-family: Molengo;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    padding: 12px 0 ;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    border: 0px;
    background: 0px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: row;
	color: black;
}

.lh-accordion__icon {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: auto;
    display: block;
    width: 100%;
    flex: 1;
    text-align: right;
	    position: relative;
    bottom: 4px;
}




.lh-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.lh-accordion--open .lh-accordion__body {
    max-height: 300px;
    padding-bottom: 1rem;
}

/* ══════════════════════════════════
   CENTER COLUMN — Main image (FIX)
══════════════════════════════════ */
.lh-main-image {
    background: #f5f4f2;
    position: relative;
	max-width: 33%;
	flex: 33%;
    /* aspect-ratio geeft de container hoogte
       ook zonder dat de afbeelding al geladen is */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    align-self: start;
}

.lh-main-image__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lh-slide--active {
    opacity: 1;
    pointer-events: auto;
}

/* Beide selectors: met en zonder custom class */
.lh-slide__img,
.lh-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ══════════════════════════════════
   RIGHT COLUMN — Product info
══════════════════════════════════ */
.lh-product-info {
    padding-left: 2.5rem;
    display: flex;
    flex-direction: column;
	width: 33%;
	flex: 33%;
}

.lh-product-info__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.lh-product-info__title {
	font-family: Molengo;
	font-weight: 400;
	font-style: Regular;
	font-size: 30px;
	leading-trim: NONE;
	line-height: 100%;
	letter-spacing: 0%;
	text-transform: uppercase;
	margin-top: 6px;
}

.lh-product-info__pricing { text-align: right; }

.lh-price {
    display: block;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.lh-price--sale { 
	font-family: Molengo;
	font-weight: 400;
	font-style: Regular;
	font-size: 28px;
	leading-trim: NONE;
	line-height: 45px;
	letter-spacing: 0%;
	color: black;
}

.lh-price--original {
	font-family: Molengo;
	font-weight: 400;
	font-style: Regular;
	font-size: 18px;
	leading-trim: NONE;
	line-height: 140%;
	letter-spacing: 0%;
	text-decoration: line-through;
	color: #7C7C7C;
}

.lh-section-label {
	font-family: Molengo;
	font-weight: 400;
	font-style: Regular;
	font-size: 22px;
	leading-trim: NONE;
	line-height: 140%;
	letter-spacing: 0%;
	margin-bottom: 10px;

}

.lh-product-info__section { margin-bottom: 1.5rem; }

.lh-product-info__description {
	font-family: Molengo;
	font-weight: 400;
	font-style: Regular;
	font-size: 20px;
	leading-trim: NONE;
	line-height: 140%;
	letter-spacing: 0%;

}

.lh-color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }

.lh-swatch {
    width: 56px;
    height: 56px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    padding: 0;
    background: none;
}

.lh-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-swatch--active, .lh-swatch:hover { border-color: #1a1a1a; }

.lh-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.lh-size-guide {
    font-size: 0.8rem;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lh-size-options { display: flex; flex-wrap: wrap; gap: 8px; }

.lh-size-btn {
    padding: 0.45rem 1rem;
    border: 1px solid #d0d0d0;
    background: #fff;
    border-radius: 2px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: inherit;
    color: #333;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-width: 48px;
    text-align: center;
}

.lh-size-btn:hover { border-color: #999; }
.lh-size-btn--active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.lh-size-btn--unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.lh-add-to-cart,
.single_add_to_cart_button {
	display: block !important;
    width: 100% !important;
    padding: 20px 20px !important;
    background: #031025 !important;
    color: #fff !important;
    border: 1px solid #031025 !important;
    border-radius: 10px !important;
    font-size: 20px !important;
    /* text-transform: uppercase !important; */
    cursor: pointer !important;
    transition: 0.3s all;
    text-align: center !important;
	font-family: Molengo;
}

.lh-add-to-cart:hover,
.single_add_to_cart_button:hover { 
	background: transparent !important;
	color: #031025 !important;
	transition: 0.3s all;
}

.lh-product-page .variations,
.lh-product-page .woocommerce-variation-add-to-cart { display: none; }

/* ══════════════════════════════════
   RESPONSIVE — Tablet (max 1024px)
══════════════════════════════════ */
@media (max-width: 1024px) {
    .lh-product-page {
        grid-template-columns: 220px 1fr 280px;
        padding: 1.5rem 1rem;
    }
    .lh-product-info { padding-left: 1.25rem; }
    .lh-gallery { padding-right: 1rem; }
	
	.lh-product-info__title {
		font-size: 24px;
	}
	
	.lh-price--sale {
		font-size: 24px;
	}
	
	.lh-price--original {
		font-size: 16px;
	}
	
	.wc-ss-options {
		flex-wrap: wrap;
	}
	
	.wc-ss-btn {
		width: fit-content !important;
	}
	
	.lh-add-to-cart, .single_add_to_cart_button {
		font-size: 20px !important;
		    padding: 12px 20px !important;
	}
}

/* ══════════════════════════════════
   RESPONSIVE — Mobile (max 768px)
══════════════════════════════════ */
@media (max-width: 768px) {
    .lh-product-page {
        grid-template-columns: 1fr;
        padding: 0;
		flex-direction: column;
    }

    .lh-main-image    { order: 1; aspect-ratio: 3 / 4; width: 100%; }
    .lh-gallery       { order: 2; display: none; padding: 0.75rem 1rem 0; }
    .lh-product-info  { order: 3; padding: 1.25rem 1rem 2rem; }
	
	.lh-gallery, .lh-main-image, .lh-product-info {
		max-width: 100% !important;
		flex: 100% !important;
		width: 100% !important;
	}

    .lh-gallery__counter { display: none; }

    .lh-gallery__thumbs {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }

    .lh-accordions:not(.lh-accordions--mobile) { display: none; }
    .lh-accordions--mobile { display: block; margin-top: 0; }

    .lh-product-info__title { max-width: 100%; margin-top: 11px; }
    .lh-product-info__pricing { text-align: left; }
}

@media (max-width: 480px) {
    .lh-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}

.wc-ss-wrapper {
    margin: 0 0 20px;
    font-family: inherit;
}
.wc-ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
	margin-bottom: 10px;
}
.wc-ss-label {
    font-family: Molengo;
    font-weight: 400;
    font-style: Regular;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;

}
.wc-ss-guide-trigger {
    font-family: Molengo;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: 0%;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
	background: unset; 
	border: unset;
	color: black;
}
.wc-ss-guide-trigger:hover { color: #2e1a6e; }

.wc-ss-options {
    display: flex;
    gap: 8px;
    border-radius: 8px;
    margin-bottom: 10px !important;
}

.wc-ss-btn {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
    opacity: 1 !important;
    padding: 8px 20px !important;
    font-size: 14px;
    width: 100%;
		font-family: Molengo;
		border-radius: 10px;
}
.wc-ss-btn:hover:not(:disabled) {
    background: #dedede;
    border-color: #aaa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.wc-ss-btn.wc-ss-active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #111827 !important;
    color: #111827 !important;
    opacity: 1 !important;
    padding: 8px 20px !important;
    font-size: 14px;
    width: 100%;
    font-family: Molengo;
}

.lh-product-info__section button.lh-add-to-cart.wc-ss-locked {
	opacity: 0.6 !important;
}

.wc-ss-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
    transform: none;
    box-shadow: none;
}

/* Locked knop – werkt voor BEIDE knop-klassen */
button.lh-add-to-cart.wc-ss-locked,
button.single_add_to_cart_button.wc-ss-locked,
.lh-add-to-cart.wc-ss-locked,
.single_add_to_cart_button.wc-ss-locked {
    background:     #111827 !important;
    background-color: #111827 !important;
    border-color:   #111827 !important;
    color:          #fff    !important;
    opacity:        1       !important;
    cursor:         not-allowed !important;
    pointer-events: none    !important;
}

/* Lightbox */
.wc-ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-ss-lightbox[hidden] { display: none !important; }
.wc-ss-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.wc-ss-lb-panel {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.55);
    max-width: min(90vw, 900px);
    max-height: 88vh;
    animation: wc-ss-lb-in .25s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes wc-ss-lb-in {
    from { opacity:0; transform:scale(.88) translateY(16px); }
    to   { opacity:1; transform:scale(1)   translateY(0);    }
}
.wc-ss-lb-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
}
.wc-ss-lb-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.65);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, transform .18s;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
}
.wc-ss-lb-close:hover { background: rgba(0,0,0,.9); transform: scale(1.08); }

/* ── Sectie ──────────────────────────────────────────────────── */
.lh-related {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px 60px;
}
 
.lh-related__title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: .02em;
    color: #111;
    margin: 0 0 28px;
    text-transform: uppercase;
}
 
/* ── Grid: 4 kolommen desktop, 2 mobiel ─────────────────────── */
.lh-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
 
@media (max-width: 900px) {
    .lh-related__grid { grid-template-columns: repeat(2, 1fr); }
}
 
@media (max-width: 480px) {
    .lh-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
 
/* ── Product card ─────────────────────────────────────────────── */
.lh-related__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease;
}
 
.lh-related__item:hover {
    transform: translateY(-4px);
}
 
/* ── Afbeelding ───────────────────────────────────────────────── */
.lh-related__img-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: 4px;
    margin-bottom: 12px;
}
 
.lh-related__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
 
.lh-related__item:hover .lh-related__img-wrap img {
    transform: scale(1.04);
}
 
.lh-related__no-img {
    width: 100%;
    height: 100%;
    background: #ececec;
}
 
/* ── Sale badge ───────────────────────────────────────────────── */
.lh-related__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}
 
/* ── Tekst ────────────────────────────────────────────────────── */
.lh-related__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
 
.lh-related__name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
}
 
.lh-related__price {
    font-size: 13px;
    color: #555;
}
 
/* Sale-prijs kleuren aanpassen aan jouw theme */
.lh-related__price .woocommerce-Price-amount { color: inherit; }
.lh-related__price ins { text-decoration: none; color: #111; }
.lh-related__price del { opacity: .5; font-size: 12px; }

.lh-cart-success {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 18px;
    background-color: #0080002e;
    border: 1px solid green;
    color: black;
}

.lh-cart-success[hidden] {
    display: none !important;
}

.lh-cart-success__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: black;
}

.lh-cart-success__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.lh-cart-success__text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
	font-family: Molengo;
}

.lh-cart-success__link {
    font-size: 16px;
	font-family: Molengo;
    font-weight: 400;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.lh-cart-success__link:hover {
   text-decoration: underline;
}