/*
Theme Name: Leflite child
Theme URI: https://lefcreative.nl/
Author: Lef Creative
Author URI: https://lefcreative.nl/
Description: Child theme van het thema Leflite
Version: 1.0.0
License: /
License URI: /
Template: leflite
*/


/* ==========================================================================
   LAYOUT & GENERAL
   ========================================================================== */

/* Widen container on large screens */
@media (min-width: 1360px) {
    .container {
        max-width: 1530px !important;
    }
}

@media (min-width: 600px) {
  .navigation .nav-holder.keep-menu-mobile {
   	margin-right: 30px; 
  }
}

@media only screen and (max-width: 991px) {
    h2 {
        font-size: var(--h2-size-mobile)!important;
        line-height: var(--h-line-height-mobile);
    }
}

p:empty {
    display: none;
}
.mini-cart-footer .payment-methods {
  max-width: 130px;
    min-width: unset!important;
}
.tiered-pricing-table {
  width: 100%;
}

@media (max-width: 768px) {
  .woocommerce-cart .woocommerce-cart-form__cart-item.cart_item {
   	flex-direction: column; 
  }
}

/* Card padding inside padding-block sections */
.padding-block .card {
    padding: 60px 40px;
}

/* Horizontal list utility: flex row, space-between */
.horizontal-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.horizontal-list i.icon {
    font-size: 1.2em;
    margin-right: 0;
}

/* "Load more" button: full-width block style */
.page-load-more a.btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-weight: 700;
    text-align: center;
}

/* Slider navigation buttons: rounded corners */
.tns-outer .tns-controls button {
    border-radius: 8px !important;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

/* Search box magnifier background */
header div.asl_m .probox .promagnifier .innericon {
    background: var(--gray);
}

/* Invert magnifier icon color for dark background */
header div.asl_m .probox .promagnifier .innericon svg {
    filter: invert(1);
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Spacing between top-level menu items */
#primary-menu-ul {
    gap: 10px;
}

/* Remove padding on menu items that contain an icon button */
#primary-menu-ul .menu-item-has-button a {
    padding: 0;
}

/* Square icon button size and centering inside menu */
#primary-menu-ul .menu-item-has-button a span.menu-item-button {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart item count badge: positioned top-right with accent color */
.main-nav-menu .cart-trigger i span.cart-items-count.count {
    position: absolute;
    top: -20px;
    right: -22px;
    background-color: #E67E22 !important;
    color: white !important;
}

/* POSTCODE API */
.wcnlpc-error:empty {
    display: none;
}

.wcnlpc-error:not(:empty) {
    width: 100%;
    background: var(--primary);
    color: var(--primary-content) !important;
    padding: 10px 15px;
    border-radius: var(--general-border-radius);
}

.wcnlpc-manual,
.wcnlpc-address {
    display: none;
}

#billing_postcode_field.form-row-first,
#shipping_postcode_field.form-row-first {
    margin-right: unset;
}

.woocommerce-page form .form-row-quart-first, .woocommerce form .form-row-quart-first {
    margin-right: unset !important;
}

.woocommerce form .form-row-quart, .woocommerce-page form .form-row-quart, .woocommerce form .form-row-quart-first, .woocommerce-page form .form-row-quart-first {
    width: calc(25% - 11px);
}

.woocommerce-billing-fields__field-wrapper .form-row#billing_street_name_field,
.woocommerce-shipping-fields__field-wrapper .form-row#shipping_street_name_field {
    width: calc(50% - 7px);
}

.woocommerce form.checkout input[readonly] {
    color: var(--black);
    background-color: var(--gray);
}



/* ==========================================================================
   HERO
   ========================================================================== */

.hero-block {
    padding: 40px 50px;
}


/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

/* Default breadcrumbs: dark background with accent left border */
#breadcrumbs {
    padding: 12px 15px;
    display: block;
    width: fit-content;
    background: var(--black);
    color: white;
    border-left: 4px solid var(--secondary);
    margin-bottom: 20px;
}

/* Force white text inside breadcrumbs outside page-header */
section:not(.page-header) #breadcrumbs * {
    color: white;
}

/* Breadcrumbs inside page-header: no border, reduced padding */
section.page-header #breadcrumbs {
    padding: 0;
    display: block;
    width: fit-content;
    background: var(--black);
    color: white;
    border-left: 0;
    margin-bottom: 10px;
}


/* ==========================================================================
   SHOP PAGE HEADER
   ========================================================================== */

/* Dark header with accent left border on shop archive pages */
.page-header.above-content.shop-page {
    padding: 40px !important;
    background-color: var(--black);
    border-left: 8px solid var(--secondary);
}

/* All text inside the shop page header turns white */
.page-header.shop-page * {
    color: var(--white);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
   padding: 50px 0;
}
/* Prevent footer images from stretching */
footer img {
    width: auto;
}

.socket *{
    font-size: 12px;
    opacity: 0.8;
}


/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

/* Hide quantity input on product cards */
.card-product .quantity-holder {
    display: none;
}

/* Portrait image ratio (3:4) for product card thumbnails */
.card-product .image-outer .image-holder {
    padding-bottom: 133%;
}

/* Hide product excerpt on cards */
.card-product .product-excerpt {
    display: none;
}

/* Use h3 size for product card titles */
.card-product h2 {
    font-size: var(--h3-size);
}


/* ==========================================================================
   ADD TO CART / CONFIGURE / MORE INFO BUTTON
   ========================================================================== */

/* Base button: full-width, dark background, flex layout for icon + label */
a.button.add_to_cart_button.position-after.bg-succes,
a.btn.configure_product_button.position-after.bg-succes,
a.btn.more_information_button.position-after.bg-succes,
a.btn.btn-medium.position-after,
button.single_add_to_cart_button.bg-succes {
    display: flex;
    align-items: center;
    background-color: var(--black);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Button label: fills available space, centered */
a.button.add_to_cart_button.position-after.bg-succes span.btn-text,
a.btn.configure_product_button.position-after.bg-succes span.btn-text {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* more_information_button / single_add_to_cart_button have no span.btn-text —
   pad the container directly to keep text clear of the right icon (52px wide) */
a.btn.more_information_button.position-after.bg-succes {
    justify-content: center;
    padding: 0 52px 0 16px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

button.single_add_to_cart_button.bg-succes {
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Yellow overlay that slides in from right on hover */
a.button.add_to_cart_button.position-after.bg-succes::before,
a.btn.configure_product_button.position-after.bg-succes::before,
a.btn.more_information_button.position-after.bg-succes::before,
a.btn.btn-medium.position-after::before {
    content: '';
    position: absolute;
    top: 0;
    right: 52px; /* matches icon width */
    bottom: 0;
    left: 100%;
    background-color: #f5c518;
    transition: left 0.3s ease;
    z-index: -1;
}

/* Trigger overlay slide on hover */
a.button.add_to_cart_button.position-after.bg-succes:hover::before,
a.btn.configure_product_button.position-after.bg-succes:hover::before,
a.btn.more_information_button.position-after.bg-succes:hover::before,
a.btn.btn-medium.position-after:hover::before {
    left: 0;
}

/* Darken button text on hover (contrast against yellow) */
a.button.add_to_cart_button.position-after.bg-succes:hover,
a.btn.configure_product_button.position-after.bg-succes:hover,
a.btn.more_information_button.position-after.bg-succes:hover,
a.btn.btn-medium.position-after:hover {
    color: #1a0a08;
}

/* Yellow icon section pinned to the right of the button */
a.button.add_to_cart_button.position-after.bg-succes .icon.icon-cart-plus,
a.btn.configure_product_button.position-after.bg-succes .icon,
a.btn.more_information_button.position-after.bg-succes .icon,
a.btn.btn-medium.position-after .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5c518;
    color: #1a0a08;
    width: 52px;
    min-width: 52px;
    height: 48px;
    font-size: 20px;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    z-index: 1;
}

/* Override width on single product page: button fills flex row instead */
.woocommerce form.cart button.single_add_to_cart_button.bg-succes {
    flex: 1;
    width: auto;
}

/* btn-medium: z-index fix — override shared ::before so overlay sits above background */
a.btn.btn-medium.position-after::before {
    z-index: 0;
}

/* btn-medium: auto width (not full-width), span padded right to clear icon */
a.btn.btn-medium.position-after {
    width: auto;
    display: inline-flex;
}

a.btn.btn-medium.position-after span {
    flex: 1;
    padding: 0 68px 0 20px; /* right gap = 52px icon + 16px breathing room */
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

a.btn.btn-medium.position-after:hover span {
    color: #1a0a08;
}

a.btn-medium {
    border: 2px solid!important;
}
a.btn-medium.bg-primary, a.btn-medium.bg-black {
    border-color: var(--secondary)!important;
}
a.btn-medium.bg-secondary {
    border-color: var(--primary)!important;
}


/* ==========================================================================
   SINGLE PRODUCT — QUANTITY STEPPER + ADD TO CART ROW
   ========================================================================== */

/* Flex row: stepper left, add-to-cart button fills remaining width */
.woocommerce form.cart {
    display: flex;
    align-items: stretch;
    flex-direction: row !important;
    gap: 0;
    flex-wrap: wrap;
}

.single-main-product .block-product-header .variations {
    width: 100%;
}

/* ==========================================================================
   PRODUCT LABEL — SINGLE PRODUCT IMAGE
   ========================================================================== */

.single-product .woocommerce-product-gallery {
    position: relative;
}

.lef-product-label--single {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    pointer-events: none;
}


/* ==========================================================================
   INFO BLOCKS (shipping / whatsapp / payment)
   ========================================================================== */

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100%;
    box-sizing: border-box;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 20px;
    border: 1px solid #e0e0e0;
    background-color: var(--gray);
    flex: 1;
    box-sizing: border-box;
}

.info-block__icon {
    font-size: 32px;
    color: var(--black, #1a1a1a);
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.info-block__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-block__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--black, #1a1a1a);
    margin: 0;
    line-height: 1.3;
}

.info-block__subtitle {
    font-size: 0.9rem;
    color: var(--black, #1a1a1a);
    margin: 0;
    line-height: 1.3;
}


/* ==========================================================================
   CART ITEM ROW
   ========================================================================== */

/* Row: gray background, left accent border */
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item {
    background-color: var(--gray);
    border-left: 3px solid var(--black);
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    transition: border-color 0.2s ease;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item:hover {
    border-left-color: #f5c518;
}

/* Thumbnail */
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-thumbnail {
    padding: 8px;
    flex-shrink: 0;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-thumbnail img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
}

/* Product name + price */
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-name-price {
    padding: 10px 14px;
    flex: 1;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-name-price .product-name a {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--black);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-name-price .product-name a:hover {
    color: #f5c518;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-name-price .product-price {
    font-size: 0.8rem;
    color: var(--black);
    opacity: 0.6;
}

/* Subtotal */
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-subtotal {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--black);
    flex-shrink: 0;
    text-align: right;
}

/* Remove button */
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-remove {
    flex-shrink: 0;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-remove .mobile-only {
    display: none;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-remove a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5c518;
    color: var(--black);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-right: 8px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .product-remove a.remove:hover {
    background-color: var(--black);
    color: #f5c518;
}
.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .quantity,.woocommerce-cart .woocommerce-cart-form__cart-item.cart_item .qty {
    background-color: white;
}

@media (min-width: 768px) {
    .woocommerce-cart .flex-table .flex-table-width-1 {
        flex: unset; 
        flex-basis: fit-content;
        margin: 0;
    }
}

/* =============================================================================
   FILTER HEIGHT — VIEW MORE
   ============================================================================= */

.filter-closed .filter-show-more {
  display: none;
}

.filter-elements.filter-collapsed {
    max-height: 300px;
    overflow: hidden;
}
.filter-element > label {
  margin-bottom: 14px!important;
}
.filter-element ul {
  margin-bottom: 14px!important;
}

.filter-show-more {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    background: none;
    border: 1px solid #cbd5e0;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.filter-show-more:hover {
    background-color: var(--gray);
}

/* Back in stock */

.cwginstock-panel-body input:not(.cwgstock_button ) {
    text-align: left!important;
    padding: 10px 15px!important;
}

/* ==========================================================================
   COMPACT CROSS-SELLS — single product summary
   ========================================================================== */

.compact-crosssells {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compact-crosssells__item {
    display: flex;
    align-items: center;
    gap: 0px;
    background-color: var(--gray);
    border-left: 3px solid var(--black);
    transition: border-color 0.2s ease;
}

.compact-crosssells__item .added_to_cart {
    display: none;
}

.compact-crosssells__item:hover {
    border-left-color: #f5c518;
}

.compact-crosssells__img-link {
    flex-shrink: 0;
    display: block;
    padding: 6px;
}

.compact-crosssells__img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.compact-crosssells__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.compact-crosssells__title {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.compact-crosssells__title:hover {
    color: #f5c518;
}

.compact-crosssells__price {
    font-size: 0.75rem;
    color: var(--black);
    opacity: 0.65;
}

.compact-crosssells__price .woocommerce-Price-amount {
    font-size: inherit;
}

/* Quantity input */
.compact-crosssells__qty {
    width: 56px;
    height: 56px;
    border: none;
    border-left: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
    -moz-appearance: textfield;
    padding: 0;
}

.compact-crosssells__qty::-webkit-inner-spin-button,
.compact-crosssells__qty::-webkit-outer-spin-button {
    opacity: 1;
}

.compact-crosssells__qty:focus {
    outline: 2px solid #f5c518;
    outline-offset: -2px;
}

/* Heading above cross-sells */
.compact-crosssells__heading {
    margin: 24px 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
}

/* Cart icon button: yellow square, icon centred */
.compact-crosssells__atc {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #f5c518;
    color: var(--black);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.compact-crosssells__atc i.icon {
    margin-left: 5px;
}

.compact-crosssells__atc:hover {
    background-color: var(--black);
    color: #f5c518;
}

/* ── Product USPs ─────────────────────────────────────────────────────────── */

.product-usps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-usps__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-usps__item .icon-check {
    color: var(--succes);
    font-size: 1.2rem;
}

/* ── Cart total weight ────────────────────────────────────────────────────── */

tr.cart-total-weight th,
tr.cart-total-weight td {
    font-weight: normal;
    padding-left: 0;
    padding-right: 0;
}