/**
 * WooCommerce presentation. Business logic stays entirely in WooCommerce.
 */

.annwn-theme.bizberg_woocommerce_shop,
.annwn-theme .woocommerce {
  color: var(--annwn-ivory);
}

.annwn-theme .woocommerce ul.products {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.annwn-theme .woocommerce ul.products::before,
.annwn-theme .woocommerce ul.products::after {
  display: none;
}

.annwn-theme .woocommerce ul.products li.product {
  background: var(--annwn-anthracite);
  border: 1px solid var(--annwn-border);
  border-radius: var(--annwn-radius-sm);
  float: none;
  margin: 0;
  overflow: hidden;
  padding-bottom: var(--annwn-space-5);
  width: auto;
}

.annwn-theme .woocommerce ul.products li.product img {
  margin: 0;
  transition: transform var(--annwn-transition-slow);
}

.annwn-theme .woocommerce ul.products li.product:hover img {
  transform: scale(1.025);
}

/* Keep the parent theme's hover panel inside the LLWYBR dark palette. */
.annwn-theme.bizberg_woocommerce_shop ul.products li.product:hover {
  background: var(--annwn-anthracite) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(184, 124, 55, 0.24);
}

.annwn-theme.bizberg_woocommerce_shop .woocommerce_shop_loop_content {
  background: var(--annwn-anthracite) !important;
  border: 1px solid var(--annwn-border);
  border-top: 0;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.58);
  color: var(--annwn-ivory);
}

.annwn-theme.bizberg_woocommerce_shop .woocommerce_shop_loop_content p {
  color: rgba(242, 236, 225, 0.82);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.annwn-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
.annwn-theme .woocommerce div.product .product_title {
  color: var(--annwn-ivory);
  font-family: var(--annwn-font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.annwn-theme .woocommerce ul.products li.product .woocommerce-loop-product__title,
.annwn-theme .woocommerce ul.products li.product .price,
.annwn-theme .woocommerce ul.products li.product .button {
  margin-inline: var(--annwn-space-5);
}

.annwn-theme .woocommerce ul.products li.product .price,
.annwn-theme .woocommerce div.product p.price,
.annwn-theme .woocommerce div.product span.price {
  color: var(--annwn-brass);
  font-family: var(--annwn-font-accent);
  font-size: var(--annwn-text-sm);
  letter-spacing: 0.06em;
}

.annwn-theme .woocommerce span.onsale {
  background: var(--annwn-bronze);
  border-radius: var(--annwn-radius-sm);
  color: var(--annwn-ink);
  font-family: var(--annwn-font-accent);
  font-size: var(--annwn-text-min);
  letter-spacing: 0.08em;
  min-height: 0;
  min-width: 0;
  padding: 0.4rem 0.7rem;
  text-transform: uppercase;
}

.annwn-theme .woocommerce a.button,
.annwn-theme .woocommerce button.button,
.annwn-theme .woocommerce input.button,
.annwn-theme .woocommerce #respond input#submit,
.annwn-theme .woocommerce a.button.alt,
.annwn-theme .woocommerce button.button.alt {
  background: var(--annwn-bronze);
  border: 1px solid var(--annwn-bronze);
  border-radius: var(--annwn-radius-sm);
  color: var(--annwn-ink);
  font-family: var(--annwn-font-accent);
  font-size: var(--annwn-text-xs) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.annwn-theme .woocommerce a.button:hover,
.annwn-theme .woocommerce button.button:hover,
.annwn-theme .woocommerce input.button:hover,
.annwn-theme .woocommerce a.button.alt:hover,
.annwn-theme .woocommerce button.button.alt:hover {
  background: var(--annwn-brass);
  border-color: var(--annwn-brass);
  color: var(--annwn-ink);
}

.annwn-theme .woocommerce-message,
.annwn-theme .woocommerce-info,
.annwn-theme .woocommerce-error {
  background: var(--annwn-anthracite);
  border-color: var(--annwn-bronze);
  color: var(--annwn-ivory);
}

.annwn-theme .woocommerce table.shop_table,
.annwn-theme .woocommerce-checkout #payment,
.annwn-theme .woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--annwn-anthracite);
  border-color: var(--annwn-border);
  border-radius: var(--annwn-radius-sm);
}

.annwn-theme .woocommerce table.shop_table th,
.annwn-theme .woocommerce table.shop_table td {
  border-color: var(--annwn-border);
}

/* Variable products: readable material selector on the dark product page. */
.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations {
  max-width: 520px;
  width: 100%;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations td {
  padding-bottom: 1rem;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations label {
  color: var(--annwn-ivory);
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 0.55rem;
  padding: 0;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations .value select {
  background-color: #111214;
  border: 1px solid rgba(198, 164, 106, 0.78);
  border-radius: var(--annwn-radius-sm);
  color-scheme: dark;
  color: var(--annwn-ivory);
  font-family: var(--annwn-font-body);
  font-size: 1rem !important;
  line-height: 1.4;
  max-width: 420px;
  min-height: 48px;
  padding: 0.75rem 2.75rem 0.75rem 0.9rem;
  width: 100%;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations .value select:focus {
  border-color: var(--annwn-brass);
  box-shadow: 0 0 0 3px rgba(198, 164, 106, 0.18);
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations .value select option {
  background: #17181a;
  color: var(--annwn-ivory);
  font-size: 1rem;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.variations_form.cart .variations .value select option:disabled {
  color: #8f8b84;
}

.annwn-theme.bizberg_woocommerce_shop div.product form.cart .reset_variations,
.annwn-theme.bizberg_woocommerce_shop div.product div.summary .product_meta {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* WooCommerce and the bundled Bizberg layer still contain 10â€“12px labels.
 * These selectors enforce the LLWYBR minimum without enlarging icon glyphs.
 */
.annwn-theme.bizberg_woocommerce_shop .woocommerce-breadcrumb,
.annwn-theme.bizberg_woocommerce_shop ul.products li.product .button,
.annwn-theme.bizberg_woocommerce_shop ul.products li.product a.added_to_cart,
.annwn-theme.bizberg_woocommerce_shop ul.products li.product .button.yith-wcqv-button,
.annwn-theme.bizberg_woocommerce_shop #review_form #respond .form-submit input,
.annwn-theme.bizberg_woocommerce_shop div.product form.cart .button,
.annwn-theme.bizberg_woocommerce_shop div.product form.cart .reset_variations,
.annwn-theme.bizberg_woocommerce_shop form.woocommerce-product-search button,
.annwn-theme.bizberg_woocommerce_shop .bizberg_header_mini_cart_wrapper p.woocommerce-mini-cart__buttons.buttons a,
.annwn-theme.bizberg_woocommerce_shop.woocommerce-wishlist .wishlist_table .product-name a.button,
.annwn-theme.bizberg_woocommerce_shop div.product div.summary .product_meta .sku_wrapper,
.annwn-theme.bizberg_woocommerce_shop div.product div.summary .product_meta .posted_in,
.annwn-theme.bizberg_woocommerce_shop div.product div.summary .product_meta .tagged_as {
  font-size: var(--annwn-text-min) !important;
}

.annwn-theme.bizberg_woocommerce_shop .bizberg_wishlist_wrapper a span,
.annwn-theme.bizberg_woocommerce_shop .bizberg_compare_wrapper a span,
.annwn-theme.bizberg_woocommerce_shop a.cart-contents span.cart_content_count,
.annwn-theme.bizberg_woocommerce_shop .header_sidemenu .mhead p span {
  font-size: var(--annwn-text-min) !important;
  height: 1.25rem;
  line-height: 1.25rem;
  width: 1.25rem;
}

/* Bloc de personnalisation produit — LLWYBR.
 * Les classes annwn-perso sont conservées pour les champs déjà en production.
 */
.annwn-perso {
  clear: both;
  display: block;
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  text-align: left;
  width: 100%;
  border-top: 1px solid rgba(184, 124, 55, 0.35);
}

.annwn-perso h2,
.annwn-perso h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  opacity: 0.85;
  text-align: left;
  text-transform: uppercase;
}

.annwn-perso-field {
  display: block !important;
  margin-bottom: 1.2rem;
  text-align: left !important;
  width: 100%;
}

.annwn-perso-label,
.annwn-perso label,
.annwn-perso-field label {
  display: block !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5rem !important;
  opacity: 0.9;
  text-align: left !important;
}

.annwn-perso-field input,
.annwn-perso-field select,
.annwn-perso-field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--annwn-ivory);
  display: block;
  font-size: 16px !important;
  max-width: 420px;
  padding: 0.6rem 0.75rem;
  width: 100%;
}

.annwn-perso-field input:focus,
.annwn-perso-field select:focus,
.annwn-perso-field textarea:focus {
  border-color: var(--annwn-brass);
  box-shadow: 0 0 0 2px rgba(198, 164, 106, 0.2);
  outline: 0;
}

/* Force tout le formulaire panier à s'empiler verticalement. */
form.cart {
  display: block !important;
}

form.cart .quantity,
form.cart .single_add_to_cart_button,
form.cart button[type="submit"] {
  clear: both !important;
  display: block !important;
  float: none !important;
  margin-top: 1.5rem !important;
}

.annwn-perso h2::after,
.annwn-perso h3::after {
  content: " * à remplir obligatoirement";
  display: block;
  font-size: var(--annwn-text-min);
  letter-spacing: normal;
  margin-top: 0.3rem;
  opacity: 0.6;
  text-transform: none;
}
