/* ═══════════════════════════════════════════════
   Liefs en Lumen — WooCommerce Stijlen
   Gebaseerd op moodboard: olijfgroen, crème, botanisch
   ═══════════════════════════════════════════════ */

/* ─── Variabelen ─── */
:root {
  --ll-green:       #7CBF73;
  --ll-green-light: #A6B79A;
  --ll-sage:        #A6B79A;
  --ll-cream:       #EDE7DC;
  --ll-nude:        #CBBEAA;
  --ll-dark:        #2C3828;
  --ll-text:        #2C2C2C;
  --ll-muted:       #7A7A7A;
  --ll-white:       #FFFFFF;
  --ll-radius:      2px;
  --ll-transition:  0.2s ease;
}

/* ─── Product cards ─── */
.product-card,
ul.products li.product {
  position: relative;
  background: var(--ll-white);
  transition: box-shadow var(--ll-transition);
}

ul.products li.product:hover {
  box-shadow: 0 4px 24px rgba(61, 82, 41, 0.08);
}

ul.products li.product a img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--ll-radius);
}

/* Wishlist / heart icon */
ul.products li.product .yith-wcwl-add-to-wishlist,
ul.products li.product .add-to-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ll-white);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ll-transition);
}

ul.products li.product:hover .yith-wcwl-add-to-wishlist {
  opacity: 1;
}

/* Product titel */
ul.products li.product .woocommerce-loop-product__title,
.product-card .wp-block-post-title a {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 400;
  color: var(--ll-text);
  text-decoration: none;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  display: block;
}

/* Prijs — loop cards */
ul.products li.product .price,
.product-card .wc-block-components-product-price,
.wc-block-components-product-price {
  color: var(--ll-muted);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 300;
}

ul.products li.product .price ins,
.wc-block-components-product-price ins {
  color: var(--ll-green);
  text-decoration: none;
  font-weight: 500;
}

/* Prijs — single product */
.wp-block-woocommerce-product-price .wc-block-components-product-price {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ll-muted);
}

/* ─── Knoppen ─── */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--ll-green);
  color: var(--ll-white);
  border: none;
  border-radius: var(--ll-radius);
  padding: 0.75rem 2.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color var(--ll-transition);
  cursor: pointer;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--ll-dark);
  color: var(--ll-white);
}

/* Outline variant */
.woocommerce a.button.outlined,
.woocommerce button.button.outlined {
  background-color: transparent;
  color: var(--ll-green);
  border: 1.5px solid var(--ll-green);
}

.woocommerce a.button.outlined:hover {
  background-color: var(--ll-green);
  color: var(--ll-white);
}

/* ─── Single Product ─── */
.woocommerce div.product .product_title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ll-dark);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ll-muted);
}

.woocommerce div.product p.price ins {
  color: var(--ll-green);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-weight: 300;
  line-height: 1.8;
  color: var(--ll-text);
  border-top: 1px solid var(--ll-nude);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* Gallery */
.woocommerce div.product div.images img {
  border-radius: var(--ll-radius);
}

.woocommerce div.product div.images .flex-viewport {
  border-radius: var(--ll-radius);
  overflow: hidden;
}

/* ─── Winkelwagen ─── */
.woocommerce-cart .woocommerce,
.woocommerce table.shop_table {
  border-collapse: collapse;
}

.woocommerce table.shop_table th {
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ll-muted);
  border-bottom: 1px solid var(--ll-nude);
  padding: 0.75rem 1rem;
}

.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--ll-nude);
  padding: 1.5rem 1rem;
  vertical-align: middle;
}

/* Cart totals */
.woocommerce .cart_totals h2 {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.5rem;
  font-weight: 400;
}

/* ─── Checkout ─── */
.woocommerce form .form-row label {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ll-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--ll-nude);
  border-radius: var(--ll-radius);
  padding: 0.75rem 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 300;
  color: var(--ll-text);
  background: var(--ll-white);
  width: 100%;
  transition: border-color var(--ll-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--ll-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 82, 41, 0.1);
}

/* Order review */
.woocommerce-checkout #order_review_heading {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.5rem;
  font-weight: 400;
}

/* ─── Mini Cart ─── */
.wc-block-mini-cart__button {
  background: transparent !important;
  color: var(--ll-text) !important;
  padding: 0.5rem !important;
  border: none !important;
}

/* ─── Mijn Account ─── */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 400;
  color: var(--ll-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all var(--ll-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: var(--ll-green);
  border-left-color: var(--ll-green);
  background: var(--ll-cream);
}

/* ─── Breadcrumb ─── */
.woocommerce-breadcrumb {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 300;
  color: var(--ll-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.woocommerce-breadcrumb a {
  color: var(--ll-muted);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--ll-green);
}

/* ─── Berichten ─── */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--ll-green);
  background: var(--ll-cream);
  color: var(--ll-text);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--ll-green);
}

.woocommerce-error {
  border-top-color: #c0392b;
}

/* ─── Categorie kaarten (homepage) ─── */
.category-card {
  background: var(--ll-white);
  overflow: hidden;
  transition: box-shadow var(--ll-transition);
}

.category-card:hover {
  box-shadow: 0 8px 32px rgba(61, 82, 41, 0.1);
}

.category-card .category-card__image img {
  transition: transform 0.4s ease;
}

.category-card:hover .category-card__image img {
  transform: scale(1.03);
}

/* ─── Announcement bar ─── */
.announcement-bar {
  padding: 0.6rem 1rem;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ll-nude);
  background: var(--ll-white);
}

.site-header .main-navigation .wp-block-navigation__container .wp-block-navigation-item__content {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  color: var(--ll-text);
}

.site-header .main-navigation .wp-block-navigation__container .wp-block-navigation-item__content:hover {
  color: var(--ll-green);
}

/* ─── Hero section ─── */
.hero-section {
  min-height: 600px;
}

.hero-image-column {
  overflow: hidden;
}

/* ─── USP bar ─── */
.usp-item {
  text-align: center;
  padding: 0 1rem;
}

/* ─── Footer navigatielinks ─── */
.site-footer .wp-block-navigation a,
.site-footer .wp-block-navigation .wp-block-navigation-item__content {
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 300;
  transition: color 0.2s ease;
}
.site-footer .wp-block-navigation a:hover,
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
  color: rgba(255,255,255,0.95) !important;
}

/* ─── Header mobiel ─── */
@media (max-width: 781px) {
  /* Flex mag wrappen zodat zoekbalk naar tweede rij kan */
  .ll-header-row {
    flex-wrap: wrap !important;
    align-items: center;
  }
  /* Volgorde: 1. logo, 2. winkelwagen (zelfde rij), 3. zoekbalk (nieuwe rij) */
  .ll-header-row > .wp-block-search {
    order: 3;
    flex: 1 1 100%;
    margin-top: 8px;
  }
  .ll-header-row > .wp-block-group:nth-child(2) {
    order: 1;
    flex: 1;
  }
  .ll-header-row > .wp-block-group:last-child {
    order: 2;
  }
}

/* ─── Responsief ─── */
@media (max-width: 768px) {
  .hero-section .wp-block-columns {
    flex-direction: column;
  }

  .hero-image-column {
    min-height: 300px;
  }

  .woocommerce ul.products[class*=columns-] li.product {
    width: 47%;
  }

  .usp-item {
    flex: 1 1 45%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products[class*=columns-] li.product {
    width: 100%;
  }
}
