/* =========================================================
   WOOCOMMERCE BRUTALIST OVERRIDES - MAXIMUM SPECIFICITY
   ========================================================= */

/* 1. GLOBAL STORE LINKS (Stop orange hover, focus, and active states) */
html body #page .woocommerce a, 
html body #page .woocommerce-page a,
html body #page .woocommerce div.product .woocommerce-tabs .panel a {
  color: #000000 !important;
  text-decoration: none !important;
  box-shadow: none !important; 
}

html body #page .woocommerce a:hover, 
html body #page .woocommerce-page a:hover,
html body #page .woocommerce a:focus,
html body #page .woocommerce a:active {
  color: #888888 !important; 
}

/* 2. PRODUCT TITLES */
html body #page .woocommerce ul.products li.product .woocommerce-loop-product__title,
html body #page .woocommerce div.product .product_title {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #000000 !important;
}

/* 3. PRODUCT PRICES */
html body #page .woocommerce ul.products li.product .price,
html body #page .woocommerce div.product .price {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #e24f2f !important;
}

/* 4. BREADCRUMBS */
html body #page .woocommerce .woocommerce-breadcrumb,
html body #page .woocommerce .woocommerce-breadcrumb a {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: #000000 !important;
}
html body #page .woocommerce .woocommerce-breadcrumb a:hover {
  color: #e24f2f !important;
}

/* 5. ALL BUTTONS (Add to Cart, Select Options, Checkout, Submit) */
html body #page .woocommerce ul.products li.product a.button,
html body #page .woocommerce div.product form.cart .button,
html body #page .woocommerce button.button,
html body #page .woocommerce button.button.alt,
html body #page .woocommerce input.button,
html body #page .woocommerce input[type="submit"],
html body #page .woocommerce a.button {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  background-color: #000000 !important;
  color: #ffffff !important; 
  border-radius: 0px !important; 
  border: 2px solid #000000 !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
  padding: 12px 25px !important;
  text-align: center !important;
  display: inline-block !important;
}

/* 6. ALL BUTTONS HOVER (Black box, Orange text) */
html body #page .woocommerce ul.products li.product a.button:hover,
html body #page .woocommerce div.product form.cart .button:hover,
html body #page .woocommerce button.button:hover,
html body #page .woocommerce button.button.alt:hover,
html body #page .woocommerce input.button:hover,
html body #page .woocommerce input[type="submit"]:hover,
html body #page .woocommerce a.button:hover {
  background-color: #000000 !important; 
  color: #e24f2f !important; 
  border-color: #000000 !important;
}

/* 7. FORM INPUT BOXES (Quantity, Text fields, Checkout boxes) */
/* This forces white backgrounds with black text so they are always readable */
html body #page .woocommerce form .form-row input.input-text,
html body #page .woocommerce form .form-row textarea,
html body #page .woocommerce .quantity input.qty {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 0px !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 700 !important;
}

/* 8. PRODUCT IMAGES HOVER BORDER */
html body #page .woocommerce ul.products li.product img {
  transition: border 0.3s ease !important;
  border: 5px solid transparent !important;
  box-sizing: border-box !important;
}
html body #page .woocommerce ul.products li.product a:hover img,
html body #page .woocommerce ul.products li.product a:focus img {
  border: 5px solid #000000 !important;
}

/* 9. BRUTALIST SORTING DROPDOWN */
html body #page .woocommerce .woocommerce-ordering select.orderby {
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-radius: 0px !important;
  box-shadow: none !important;
  padding: 12px 40px 12px 15px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px top 50% !important;
  background-size: 12px auto !important;
  transition: all 0.3s ease !important;
}
html body #page .woocommerce .woocommerce-ordering select.orderby:hover,
html body #page .woocommerce .woocommerce-ordering select.orderby:focus {
  border-color: #e24f2f !important;
  outline: none !important;
}

/* 10. BRUTALIST SALE BADGE (Maximum Override) */
html body #page .woocommerce span.onsale,
html body #page .woocommerce div.product span.onsale,
html body #page .woocommerce ul.products li.product span.onsale,
html body #page .onsale {
  background-color: #000000 !important;
  background-image: none !important; /* Prevents theme gradients */
  color: #ffffff !important;
  border-radius: 0px !important; 
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 8px 15px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1 !important;
  border: none !important;
}
/* 11. KLARNA WIDGET (Pushed to bottom of product summary) */
html body #page .woocommerce div.product div.summary {
  display: flex !important;
  flex-direction: column !important;
}
html body #page .woocommerce div.product div.summary > * {
  order: 1;
}
html body #page .woocommerce div.product div.summary > [class*="klarna"],
html body #page .woocommerce div.product div.summary > klarna-placement,
html body #page .woocommerce div.product div.summary > iframe[id*="klarna"] {
  order: 99 !important;
  margin-top: 25px !important;
}
/* 12. HIDE WOOCOMMERCE SHORT DESCRIPTION (Top of page) */
html body #page .woocommerce div.product .woocommerce-product-details__short-description {
  display: none !important;
}
/* FINAL BRUTALIST SALE BADGE OVERRIDE */
span.onsale {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 0px !important; 
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 8px 15px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}
/* 13. BRUTALIST GALLERY THUMBNAILS (CSS Filter Method) */

/* Makes inactive thumbnails dark grey/black-and-white and ignores background colors */
html body #page .woocommerce div.product div.images .flex-control-thumbs li img,
html body #page .elementor-widget-woocommerce-product-images .swiper-slide img,
html body #page .woocommerce-product-gallery .flex-control-thumbs li img {
  filter: grayscale(100%) brightness(50%) !important;
  opacity: 1 !important; /* Forces 100% opacity so the orange background can't bleed through */
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

/* Snaps the active or hovered thumbnail back to full color with a sharp black border */
html body #page .woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
html body #page .woocommerce div.product div.images .flex-control-thumbs li img:hover,
html body #page .elementor-widget-woocommerce-product-images .swiper-slide img:hover,
html body #page .elementor-widget-woocommerce-product-images .swiper-slide-thumb-active img,
html body #page .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  filter: grayscale(0%) brightness(100%) !important;
  border: 2px solid #000000 !important;
}