/* ==========================================================================
   ForaVida — WooCommerce overrides
   Only deviations from Shoptimizer defaults go here.
   Keep this file small; prefer tokens from foravida.css.
   ========================================================================== */


/* --- Product card (PLP) --- */

.woocommerce ul.products li.product {
  border-radius: var(--fv-radius-md);
}

.woocommerce ul.products li.product .price {
  color: var(--fv-price);
}


/* --- Sale badge --- */

.woocommerce span.onsale {
  background-color: var(--fv-sale);
  color: var(--fv-bg);
  border-radius: var(--fv-radius-pill);
}


/* --- Buttons — border-radius only.
   Colors are managed by the Shoptimizer customizer
   (Appearance → Customize → WooCommerce Colors).
   Do NOT add background-color overrides here.            --- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  border-radius: var(--fv-radius-sm);
  transition: background-color var(--fv-ease);
}


/* --- Sorting dropdown (select.orderby) --- */

select.orderby {
  border: 1px solid var(--fv-border) !important;
  border-radius: var(--fv-radius-sm) !important;
  padding: 8px 34px 8px 12px !important;
  font-size: .9rem;
  background-color: var(--fv-bg);
  color: var(--fv-text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  min-width: 180px;
  box-shadow: none !important;
  transition: border-color var(--fv-ease), box-shadow var(--fv-ease);
}

select.orderby:focus {
  border-color: var(--fv-air) !important;
  box-shadow: var(--fv-focus-ring) !important;
  outline: none;
}


/* --- Form fields (checkout & my-account) --- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border-radius: var(--fv-radius-sm);
  border-color: var(--fv-border);
  transition: border-color var(--fv-ease), box-shadow var(--fv-ease);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--fv-green);
  box-shadow: var(--fv-focus-ring);
  outline: none;
}


/* --- Notices --- */

.woocommerce-message {
  border-top-color: var(--fv-success);
}

.woocommerce-info {
  border-top-color: var(--fv-info);
}

.woocommerce-error {
  border-top-color: var(--fv-error);
}


/* --- Price styling --- */

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--fv-price);
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--fv-text-muted);
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  color: var(--fv-sale);
  text-decoration: none;
}


/* --- Star ratings --- */

.woocommerce .star-rating span::before {
  color: var(--fv-star);
}


/* ==========================================================================
   TM Extra Product Options
   ========================================================================== */

/* Titel van de extra opties sectie */
.tm-extra-product-options h3,
.tm-epo-totals-title {
  font-size: 18px !important;
}

/* Label sizing */
.tc-epo-element-label,
h3.tc-epo-element-label,
.tc-cell.tc-epo-label.tm-epo-element-label,
.tm-epo-element-label {
  font-size: 16px;
}

h2.tc-epo-element-label,
.section-heading h2,
.tc-section-inner-wrap h2 {
  font-size: 20px;
  padding-top: 10px;
}

/* Accessibility — focus */
.tm-epo-accordion-header:focus,
.tm-epo-section-title:focus {
  outline: 2px solid var(--fv-wc-green);
  outline-offset: 2px;
}

.tm-epo-field input:focus,
.tm-epo-field textarea:focus,
.tm-epo-field select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 124, 90, 0.2);
}

/* Hide lightbox wrap */
.tc-lightbox-wrap {
  display: none;
}

/* Hide product dropdown inside EPO */
.tm-extra-product-options .cpf-type-product-dropdown ul.tmcp-ul-wrap.tm-element-ul-product > li.tc-epo-element-product-li-container {
  display: none;
}

/* Section link button */
.button.button.alt.tm-section-link {
  font-weight: 600;
  background-color: var(--fv-air) !important;
}


/* ==========================================================================
   USP Container
   ========================================================================== */

/* Hide automatische vinkjes van theme */
.usp-container .usp-list li:before,
.usp-container .usp-item:before,
.usp-list li:before {
  display: none !important;
  content: none !important;
}

.usp-container {
  background-color: var(--fv-wc-bg-soft);
  border-radius: var(--fv-radius-md);
  padding: var(--fv-space-lg);
  margin-top: var(--fv-space-md);
}

.usp-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fv-green-dark);
  margin-bottom: var(--fv-space-md);
}

.usp-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.usp-item {
  display: flex !important;
  align-items: center;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--fv-wc-green-muted);
  list-style: none !important;
}

.usp-item:last-child {
  margin-bottom: 0;
}

.usp-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--fv-wc-green);
  stroke-width: 2;
}

.usp-text {
  line-height: 1.5;
  font-weight: 500;
}


/* ==========================================================================
   Price styling — Product page
   ========================================================================== */

p.price {
  font-size: 1.9rem;
  font-weight: 900;
}

/* Hide stock text */
.content-area .commercekit-pdp-sticky-inner p.stock {
  display: none;
}

.content-area p.stock {
  display: none;
}

/* Hide sale badge in summary */
.summary .onsale {
  display: none;
}

.ckit-badge {
  opacity: 1;
}


/* ==========================================================================
   Product attribute swatches
   ========================================================================== */

.single-product .cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-image button {
  width: 150px;
  height: 150px;
}


/* ==========================================================================
   Cart page
   ========================================================================== */

/* Witte checkout sidebar */
.cart-collaterals,
.woocommerce-cart-form__contents + .cart-collaterals,
.entry-content .cart-collaterals {
  background-color: var(--fv-bg) !important;
  border-radius: var(--fv-radius-lg);
  padding: var(--fv-space-lg) !important;
  box-shadow: var(--fv-shadow-md);
  margin-left: 20px;
}

/* Cart table */
.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents,
.woocommerce-cart-form table {
  background-color: var(--fv-bg) !important;
  border-radius: var(--fv-radius-md);
  padding: var(--fv-space-md) !important;
  box-shadow: var(--fv-shadow-sm);
}

/* Productafbeeldingen */
.cart_item img,
.product-thumbnail img {
  border-radius: var(--fv-radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Knoppen met impact */
.single_add_to_cart_button,
.checkout-button,
.wc-proceed-to-checkout .checkout-button,
button[name="update_cart"],
input[name="update_cart"] {
  box-shadow: 0 4px 12px rgba(90, 124, 90, 0.25) !important;
  transition: all 0.3s ease;
}

.single_add_to_cart_button:hover,
.checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
  box-shadow: 0 6px 16px rgba(90, 124, 90, 0.35) !important;
  transform: translateY(-1px);
}

/* Totaal bedrag */
.cart-subtotal,
.order-total {
  background-color: var(--fv-wc-bg);
  padding: 12px;
  border-radius: var(--fv-radius-sm);
  margin: 8px 0;
}

.order-total .woocommerce-Price-amount {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--fv-green-dark);
}

/* Proceed to checkout */
.woocommerce-cart .wc-proceed-to-checkout {
  background-color: var(--fv-bg);
  border-radius: var(--fv-radius-md);
  padding: 20px;
  box-shadow: var(--fv-shadow-sm);
}

/* Cart fallback */
.woocommerce .entry-content .cart-collaterals {
  background-color: var(--fv-bg) !important;
}

/* Cart product price column */
#page table.cart.woocommerce-cart-form__contents td.product-price {
  display: table-cell;
}

#page table.cart.woocommerce-cart-form__contents td.product-price del {
  opacity: 0.5;
  font-size: 13px;
  margin-right: 3px;
}

/* Cart responsive */
@media (max-width: 768px) {
  .cart-collaterals,
  .woocommerce-checkout .col-2 {
    margin-left: 0 !important;
    margin-top: 20px;
  }

  .cart-collaterals,
  .checkout-sidebar {
    padding: var(--fv-space-md) !important;
  }
}


/* ==========================================================================
   Checkout page
   ========================================================================== */

/* Factuurgegevens — witte card */
#customer_details .col-1 {
  background-color: var(--fv-bg) !important;
  border-radius: var(--fv-radius-lg) !important;
  padding: var(--fv-space-lg) !important;
  margin-bottom: 20px !important;
  box-shadow: var(--fv-shadow-md) !important;
  border: 1px solid var(--fv-wc-border) !important;
}

/* Verzendadres + bestelnotities — witte card */
#customer_details .col-2 {
  background-color: var(--fv-bg) !important;
  border-radius: var(--fv-radius-lg) !important;
  padding: var(--fv-space-lg) !important;
  margin-bottom: 20px !important;
  box-shadow: var(--fv-shadow-md) !important;
  border: 1px solid var(--fv-wc-border) !important;
}

/* Bestelling overzicht — witte card */
#order_review_heading,
#order_review {
  background-color: var(--fv-bg) !important;
  border-radius: var(--fv-radius-lg) !important;
  box-shadow: var(--fv-shadow-md) !important;
  border: 1px solid var(--fv-wc-border) !important;
}

#order_review_heading {
  padding: 24px 24px 0 24px !important;
  margin-bottom: 0 !important;
  border-radius: var(--fv-radius-lg) var(--fv-radius-lg) 0 0 !important;
  border-bottom: none !important;
}

#order_review {
  padding: 0 24px 24px 24px !important;
  border-radius: 0 0 var(--fv-radius-lg) var(--fv-radius-lg) !important;
  box-shadow: none !important;
  border-top: none !important;
}

/* Sectie headers */
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
  color: var(--fv-green-dark) !important;
  font-weight: 600 !important;
  margin-bottom: var(--fv-space-md) !important;
  padding-bottom: var(--fv-space-sm) !important;
  border-bottom: 2px solid var(--fv-wc-border) !important;
  font-size: 18px !important;
}

/* Betaalmethodes */
#payment {
  background-color: var(--fv-wc-bg) !important;
  border-radius: var(--fv-radius-md) !important;
  padding: var(--fv-space-md) !important;
  margin: var(--fv-space-md) 0 !important;
  border: 1px solid var(--fv-wc-border-green) !important;
}

.wc_payment_method,
.payment_method {
  border-bottom: 1px solid var(--fv-wc-border);
  padding: 8px 0;
}

.wc_payment_method:last-child,
.payment_method:last-child {
  border-bottom: none;
}

/* Bestelling tabel */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--fv-wc-border);
}

.cart-subtotal th,
.cart-subtotal td,
.order-total th,
.order-total td {
  background-color: var(--fv-wc-bg) !important;
  font-weight: 600 !important;
  padding: 16px 12px !important;
  margin: 4px 0 !important;
}

.cart-subtotal,
.order-total {
  border-radius: var(--fv-radius-sm) !important;
  overflow: hidden;
}

/* Verzending sectie */
.woocommerce-checkout-review-order-table .shipping,
.woocommerce-checkout-review-order-table tr.shipping th,
.woocommerce-checkout-review-order-table tr.shipping td {
  background-color: var(--fv-wc-bg) !important;
  padding: 16px 12px !important;
}

.shipping {
  border-radius: var(--fv-radius-sm) !important;
  overflow: hidden;
}

/* Bestel knop */
#place_order {
  background: linear-gradient(135deg, var(--fv-wc-green) 0%, var(--fv-wc-green-dark) 100%) !important;
  border: none !important;
  border-radius: var(--fv-radius-md) !important;
  padding: 18px 32px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--fv-bg) !important;
  width: 100% !important;
  box-shadow: 0 6px 20px rgba(90, 124, 90, 0.3) !important;
  transition: all 0.3s ease;
  margin-top: var(--fv-space-md) !important;
}

#place_order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90, 124, 90, 0.4) !important;
}

/* Privacy/terms */
.woocommerce-terms-and-conditions-wrapper,
.terms {
  background-color: var(--fv-wc-bg) !important;
  border-radius: var(--fv-radius-sm) !important;
  padding: var(--fv-space-md) !important;
  margin: var(--fv-space-md) 0 !important;
  border-left: 3px solid var(--fv-wc-green) !important;
}

/* Checkout responsive */
@media (max-width: 768px) {
  #customer_details .col-1,
  #customer_details .col-2,
  #order_review {
    padding: var(--fv-space-md) !important;
  }

  #place_order {
    font-size: 16px !important;
    padding: 16px 24px !important;
  }
}


/* ==========================================================================
   PDP — Inmeettool badge
   ========================================================================== */

.fv-pdp-inmeettool {
  margin-bottom: var(--fv-space-sm);
}

.fv-pdp-inmeettool__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--fv-sage);
  transition: color 0.15s ease;
}

.fv-pdp-inmeettool__btn:hover {
  color: var(--fv-green-dark);
}

.fv-pdp-inmeettool__btn i,
.fv-pdp-inmeettool__btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Hide original [commercekit_sizeguide] button in short description */
.single-product .commercekit-size-guide.cgkit-size-guide-shortcode {
  display: none;
}


/* ==========================================================================
   PDP — "Stel samen" config wrapper
   ========================================================================== */

.fv-pdp-config {
  margin: var(--fv-space-lg) 0 var(--fv-space-md);
  padding: var(--fv-space-lg);
  background: var(--fv-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  overflow: visible; /* TM EPO dropdowns must not be clipped */
}

.fv-pdp-config__heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--fv-text);
  margin: 0 0 var(--fv-space-md);
  padding-bottom: var(--fv-space-sm);
  border-bottom: 1px solid var(--fv-border);
}

/* Clean up TM EPO spacing inside config card */
.fv-pdp-config .tm-extra-product-options {
  margin-top: 0;
}

/* Hide variation price inside config (main price at priority 10 shows above) */
.fv-pdp-config .woocommerce-variation.single_variation {
  display: none;
}

/* Quantity + ATC: visually separate from the config card */
.fv-pdp-config .woocommerce-variation-add-to-cart {
  background: var(--fv-bg, #fff);
  margin: var(--fv-space-md) calc(-1 * var(--fv-space-lg)) calc(-1 * var(--fv-space-lg));
  padding: var(--fv-space-md) var(--fv-space-lg);
  border-top: 1px solid var(--fv-border);
  border-radius: 0 0 calc(var(--fv-radius-md) - 1px) calc(var(--fv-radius-md) - 1px);
}

.fv-pdp-config .single_add_to_cart_button {
  width: 100%;
}


/* ==========================================================================
   PDP — TM EPO restyle
   ========================================================================== */

/* Accordion header (Glazen schuifwand samenstellen) */
.single-product .tm-section-label.tm-toggle {
  font-size: 18px;
  font-weight: 600;
  color: var(--fv-text);
  background: var(--fv-surface);
  border-radius: var(--fv-radius-sm);
  padding: var(--fv-space-md) var(--fv-space-lg);
}

/* Arrow indicator */
.single-product .tm-section-label.tm-toggle .tm-arrow {
  color: var(--fv-text-muted);
  transition: transform 0.2s ease;
}

/* Section label text */
.single-product .tm-section-label .tc-section-label-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--fv-text);
}

/* Step headers (Stap 1/6: Funderingskoker) */
.single-product h3.tm-epo-element-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--fv-text);
  margin-bottom: var(--fv-space-xs);
}

/* Content box wrapper — override the foravida.css .content-box-green on PDP */
.single-product .content-box-green {
  background-color: var(--fv-bg);
  border-color: var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: var(--fv-space-md);
}

/* Section description text */
.single-product .tm-section-description p,
.single-product .tm-element-description p {
  color: var(--fv-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Section link button (Volgende) */
.single-product .button.button.alt.tm-section-link {
  border-radius: var(--fv-radius-sm);
  font-weight: 600;
}

/* Selected/active option states */
.single-product .tc-active {
  border-color: var(--fv-sage) !important;
  box-shadow: 0 0 0 2px rgba(111, 124, 75, 0.15);
}

.single-product .tm-epo-field input[type="radio"]:checked + label,
.single-product .tm-epo-field input[type="radio"]:checked + span,
.single-product .tm-epo-field input[type="checkbox"]:checked + label {
  border-color: var(--fv-sage) !important;
  box-shadow: 0 0 0 2px rgba(111, 124, 75, 0.15);
}

/* CommerceKit swatches inside config */
.fv-pdp-config .cgkit-as-wrap .cgkit-attribute-swatch.cgkit-image button {
  border-radius: var(--fv-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fv-pdp-config .cgkit-as-wrap .cgkit-attribute-swatch.cgkit-image button:hover,
.fv-pdp-config .cgkit-as-wrap .cgkit-attribute-swatch.cgkit-selected button {
  border-color: var(--fv-sage);
  box-shadow: 0 0 0 2px rgba(111, 124, 75, 0.15);
}


/* ==========================================================================
   PDP — "Zorgeloos bestellen" trust widget
   ========================================================================== */

.fv-pdp-trust {
  background: var(--fv-surface);
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius-md);
  padding: var(--fv-space-lg);
  margin-top: var(--fv-space-md);
}

.fv-pdp-trust__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fv-text);
  margin: 0 0 var(--fv-space-md);
}

.fv-pdp-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fv-pdp-trust__list li {
  display: flex;
  align-items: center;
  gap: var(--fv-space-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--fv-text);
  margin-bottom: 12px;
  line-height: 1.5;
  list-style: none;
  padding-left: 0;
}

/* Override Shoptimizer .product-widget ul li:before checkmark */
.fv-pdp-trust__list li::before {
  display: none !important;
  content: none !important;
}

.fv-pdp-trust__list li:last-child {
  margin-bottom: 0;
}

.fv-pdp-trust__list li i,
.fv-pdp-trust__list li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--fv-sage);
}

/* Hide old USP container on single product pages */
.single-product .product-widget .usp-container {
  display: none;
}


/* ==========================================================================
   PDP — Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .fv-pdp-config {
    padding: var(--fv-space-md);
    margin: var(--fv-space-md) 0 var(--fv-space-sm);
  }

  .fv-pdp-config .woocommerce-variation-add-to-cart {
    margin: var(--fv-space-md) calc(-1 * var(--fv-space-md)) calc(-1 * var(--fv-space-md));
    padding: var(--fv-space-md);
  }
}
