/* --- cart-dropdown.css --- */
.custom-cart-container {
    position: relative;
    display: inline-block;
}

.custom-cart-icon {
    position: relative;
    cursor: pointer;
}

.custom-cart-count {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.custom-cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 380px;
    padding: 20px;
    z-index: 1000;
}
.custom-cart-dropdown.is-open {
    display: block;
}
.custom-cart-dropdown h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.custom-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}
.custom-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-cart-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.custom-cart-details {
    flex: 1;
}

.custom-cart-product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.custom-cart-quantity-price {
    font-size: 14px;
    color: #333;
}

.custom-cart-subtotal {
    font-size: 16px;
    margin-bottom: 20px;
}

.custom-cart-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.custom-cart-link {
    font-size: 14px;
    text-decoration: underline;
    color: #000;
}

.custom-cart-button {
    background: #008c45;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.custom-cart-extra-info {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@media (max-width: 480px) {
    .custom-cart-dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: auto;
        padding: 16px;
        border-radius: 0;
        z-index: 9999;
    }
}

/* --- search.css --- */

.search-container {
    position: relative;
	background-color: #fff; /* lichte grijze achtergrond */
	border: 1px solid #b5b2b3;
    border-radius: 999px; /* volledig afgerond */
    padding: 6px 12px;
    align-items: center;
    max-width: 1200px;
}

.search-container input[type="text"] {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #333;
}

.search-container input::placeholder {
    color: #666;
}

.search-icon {
    font-size: 14px;
}
.search-icon img {
	width: 15px !important;
	position:absolute;
	top: 15px;
}

#woocommerce-search {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    outline: none;
	margin-left: 20px !important;
}

.search-dropdown {
    position: fixed;
	display: flex;
    justify-content: center;  /* horizontaal centreren */
    align-items: center;
    width: 100% !important;
	left: 0px;
	margin: 5px 0 5px 0 !important;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 50px;
    z-index: 1000;
	top: 130px !important;
}

.search-column {
    width: 30%;
	display: inline-grid;
	text-align:center;
}
.search-result-wrapper {
	width: 70%;
	margin: 0 auto !important;
	
}
.search-item-main {
    display: flex;
    align-items: center;
    padding: 5px;
}

.search-item-main img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.search-item-main a {
    text-decoration: none;
    color: black;
    font-size: 14px;
	text-align: left;
}

.search-item-main:hover {
    background-color: #f5f5f5;
}

/* --- live-search.css --- */
#search-results-mobile.dropdown-mobile {
  position: absolute;
  z-index: 9999;
  background: white;
  width: 100%;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#search-results-mobile {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
}

.search-container-mobile {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#search-input-mobile {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.dropdown-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: none;
	border: 0 !important;
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
}

.search-item-mobile {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.search-item-mobile img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.item-info {
  flex: 1;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.item-price {
  font-size: 14px;
  color: #333;
}

/* --- product-overview.css --- */
.cwpf-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.cwpf-sidebar {
    width: 20%;
}

.cwpf-sidebar-desktop {
    list-style-type: none !important;
    padding: 0;
}

.cwpf-sidebar-desktop li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.cwpf-sidebar-desktop li a:hover {
    background: #e6f1ec;
    color: #008c45;
}

.cwpf-products {
    width: 80%;
}

.cwpf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cwpf-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.cwpf-product {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}

.cwpf-product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cwpf-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cwpf-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px;
	color: #000;
}

.cwpf-product-price {
    font-size: 20px;
    font-weight: bold;
}

.cwpf-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cwpf-cart-button {
    background: #008c45;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}
.cwpf-favorite-button:hover {
    background: #eee;
}

.cwpf-cart-button {
    background: #008c45;
    color: white;
}

.cwpf-cart-button:hover {
    background: #006c34;
}

.cwpf-compare-link {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    margin-top: 4px;
    display: block;
}

.cwpf-icon-cart::before {
    content: "🛒";
}

.cwpf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.cwpf-button {
    background-color: #008c45;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background 0.3s;
}

.cwpf-button:hover {
    background-color: #006d36;
}
.cwpf-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;

    position: fixed; /* Fixed positie voor scrollen */
    bottom: 20px;
    left: 50%;
	width: 50%;
    transform: translateX(-50%); /* Centreer de melding horizontaal */
    z-index: 9999; /* Zorg ervoor dat het boven andere elementen komt */
    
    opacity: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, height 0.5s ease;
}

/* Wanneer zichtbaar */
#cwpf-message.show {
    opacity: 1;
    height: auto;
	width: 50%;
    visibility: visible;
}

/* Loader */
.cwpf-loader {
    text-align: center;
    font-weight: bold;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cwpf-container {
        flex-direction: column;
    }

    .cwpf-sidebar-desktop {
        display: none;
    }

    .cwpf-sidebar-mobile {
        display: block;
        margin-bottom: 20px;
    }

    .cwpf-products {
        flex: 1 1 100%;
    }
}
@media (min-width: 768px){
	.cwpf-sidebar-mobile {
		display:none;
	}
}

@media (max-width: 768px) {
    .cwpf-product {
        display: flex !important;
        flex-direction: row !important;   /* put image + content in one row */
        align-items: center !important;
        gap: 12px !important;
    }
        
    .cwpf-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); 
        gap: 0 !important; 
    }

    .cwpf-product-link {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .cwpf-product-image {
        flex: 0 0 100px !important; /* smaller fixed image size */
    }

    .cwpf-product-image img {
        width: 100px !important;
        height: 100px !important;
        object-fit: cover !important;
    }

    .cwpf-product-content {
        flex: 1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .cwpf-product-title {
        font-size: 14px !important;
        margin: 0 !important;
    }

    .cwpf-product-price {
        font-size: 16px !important;
        font-weight: bold !important;
    }

    .cwpf-product-actions {
        display: grid !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 0 !important; /* no stacking below */
    }

    .cwpf-favorite-button, .cwpf-cart-button {
        font-size: 18px !important;
        padding: 6px !important;
    }

    .cwpf-compare-link {
        font-size: 12px !important;
    }
	
	.cwpf-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;

    position: fixed; /* Fixed positie voor scrollen */
    bottom: 20px;
    left: 50%;
	width: 80%;
    transform: translateX(-50%);
    z-index: 9999; /* Zorg ervoor dat het boven andere elementen komt */
    
    opacity: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, height 0.5s ease;
    }
}

@media (max-width: 480px) {

    .et_pb_row et_pb_row_1 {
        width: 100% !important
    }
    .cwpf-product-title {
        font-size: 13px;
    }

    .cwpf-product-price {
        font-size: 16px;
    }

    .cwpf-favorite-button, .cwpf-cart-button {
        font-size: 18px;
    }

    .cwpf-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
        gap: 0 !important; 
    }

    .cwpf-compare-link {
        font-size: 11px;
    }
}
/* --- product-overview.css --- */
.cwpf-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.cwpf-sidebar {
    width: 20%;
}

.cwpf-sidebar-desktop {
    list-style-type: none !important;
    padding: 0;
}

.cwpf-sidebar-desktop li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.cwpf-sidebar-desktop li a:hover {
    background: #e6f1ec;
    color: #008c45;
}

.cwpf-products {
    width: 80%;
}

.cwpf-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.cwpf-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px;
	color: #000;
}

.cwpf-product-price {
    font-size: 20px;
    font-weight: bold;
}

.cwpf-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cwpf-cart-button {
    background: #008c45;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}
.cwpf-favorite-button:hover {
    background: #eee;
}

.cwpf-cart-button {
    background: #008c45;
    color: white;
    width: 50px;
}

.cwpf-cart-button:hover {
    background: #006c34;
}

.cwpf-compare-link {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    margin-top: 4px;
    display: block;
}

.cwpf-icon-cart::before {
    content: "🛒";
}

.cwpf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.cwpf-button {
    background-color: #008c45;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: background 0.3s;
}

.cwpf-button:hover {
    background-color: #006d36;
}
.cwpf-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;

    position: fixed; /* Fixed positie voor scrollen */
    bottom: 20px;
    left: 50%;
	width: 50%;
    transform: translateX(-50%); /* Centreer de melding horizontaal */
    z-index: 9999; /* Zorg ervoor dat het boven andere elementen komt */
    
    opacity: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, height 0.5s ease;
}

/* Wanneer zichtbaar */
#cwpf-message.show {
    opacity: 1;
    height: auto;
	width: 50%;
    visibility: visible;
}

/* Loader */
.cwpf-loader {
    text-align: center;
    font-weight: bold;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .cwpf-container {
        flex-direction: column;
    }

    .cwpf-sidebar-desktop {
        display: none;
    }

    .cwpf-sidebar-mobile {
        display: block;
        margin-bottom: 20px;
    }

    .cwpf-products {
        flex: 1 1 100%;
    }
}
@media (min-width: 768px){
	.cwpf-sidebar-mobile {
		display:none;
	}
}

@media (max-width: 768px) {

	.cwpf-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 14px;

    position: fixed; /* Fixed positie voor scrollen */
    bottom: 20px;
    left: 50%;
	width: 80%;
    transform: translateX(-50%);
    z-index: 9999; /* Zorg ervoor dat het boven andere elementen komt */
    
    opacity: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, height 0.5s ease;
    }
}

@media (max-width: 480px) {
    .cwpf-product {
        padding: 0px;
    }

    .cwpf-product-title {
        font-size: 13px;
        width: 200px !important;
    }

    .cwpf-product-price {
        font-size: 16px;
    }

    .cwpf-favorite-button, .cwpf-cart-button {
        font-size: 18px;
    }

    .cwpf-compare-link {
        font-size: 11px;
    }

}
/* --- Mobile Category Dropdown --- */
.cwpf-mobile-category-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #b5b2b3;
    border-radius: 999px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23333%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}
@media (max-width: 768px) {
    .cwpf-sidebar {
        width: 100%;
    }
}