/* ==================================================
   GLOBAL UI BASICS
================================================== */

.fullscreen-menu {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  background: #fff;
  z-index: 9998;
  overflow-y: auto;
}

.fullscreen-menu.active {
  display: flex;
  flex-direction: column;
}

.products-menu-toggle.active {
  color: #000;
}

/* ==================================================
   FIXED HEADER
================================================== */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  transition: background-color 0.3s ease;
}

body.home .sticky-header {
  background: transparent;
  top: 10px;
}

body.home main {
  padding-top: 105px;
}

body:not(.home) main {
  padding-top: 100px;
}

body:not(.home) .sticky-header {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==================================================
   TOP STRIP
================================================== */

.top-strip {
  height: 10px;
  line-height: 10px;
  background: #F2F0EB;
  font-size: 8px;
  text-align: center;
  overflow: hidden;
}

/* ==================================================
   TYPOGRAPHY
================================================== */

.required-parts h2,
.compatible-products h2,
.woocommerce .upsells.products h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

span.BodyText,
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description,
.product .entry-summary,
.product .entry-content {
  font-size: 12px;
  line-height: 20px;
}

/* ==================================================
   PRODUCT PRICE (CSS REPLACES JS)
================================================== */

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins bdi,
.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price .woocommerce-Price-amount bdi {
  color: #000 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del * {
  text-decoration: line-through !important;
  opacity: 0.6;
  margin-right: 8px;
}

/* ==================================================
   PRODUCT GRIDS
================================================== */

.woocommerce .related ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .woocommerce .related ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================================================
   CART & CHECKOUT
================================================== */

.woocommerce-cart .related,
.woocommerce-cart .wt-related-products {
  display: none;
}

.woocommerce-cart,
.woocommerce-cart * {
  color: #000;
}

.woocommerce-cart .checkout-button,
.wc-block-components-checkout-place-order-button {
  background: #F2F0EB;
  border: 1px solid #9E856F;
  border-radius: 25px;
  padding: 12px 28px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.woocommerce-cart .checkout-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: #9E856F;
  color: #fff;
}

.woocommerce-cart .coupon input#coupon_code {
  width: 65%;
  height: 35px;
  padding: 0 20px;
  border-radius: 25px;
  border: 1px solid #9E856F;
  background: #F2F0EB;
}

/* ==================================================
   SINGLE PRODUCT — VARIATIONS (FIXED)
================================================== */

/* Hide default variation labels */
.variations .label {
  display: none !important;
}

/* Prevent table spacing */
.woocommerce div.product form.cart .variations td.value {
  padding: 0 !important;
  margin: 0 !important;
}

/* Select2 container */
.select2-container {
  width: 100% !important;
}

/* Visible dropdown */
.select2-container--default .select2-selection--single {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  background: #F2F0EB !important;
  border: 1px solid #F2F0EB !important;
  box-shadow: none !important;
}

/* Text inside dropdown */
.select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 16px !important;
  padding-right: 36px !important;
}

/* Arrow */
.select2-selection__arrow {
  height: 44px !important;
  right: 10px !important;
}

/* Hover */
.select2-container--default .select2-selection--single:hover {
  background: #F5F3EE !important;
}

/* ==================================================
   SINGLE PRODUCT — PRICE & BUTTONS
================================================== */

.woocommerce-variation-price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #000 !important;
  font-weight: 300;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif !important;
}

.request-quote-button {
  width: 100%;
  background: #f3e8db;
  color: #9e856f;
  font-size: 14px;
  border: none;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif !important;
}

.request-quote-button:hover {
  background: #e7d9c6;
  color: #7e6d59;
}

/* Success message */
.woocommerce-message {
  background: #D6BFAF !important;
  color: #3a2c1e !important;
  border-radius: 8px !important;
  padding: 15px 20px !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: none !important;
}

.woocommerce-message::before {
  display: none !important;
}

/* ==================================================
   SALE BADGES OFF
================================================== */

.woocommerce span.onsale,
.woocommerce .badge {
  display: none !important;
}

/* ==================================================
   MOBILE PERFORMANCE FIXES
================================================== */

@media (max-width: 768px) {

  * {
    animation: none !important;
    transition: none !important;
  }

  .sticky-header {
    transform: none !important;
  }

  .single-product .product {
    padding: 0 16px;
  }

  form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

/* ==================================================
   SCROLL TO TOP
================================================== */

#scroll-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.scrolled #scroll-to-top {
  opacity: 1;
  pointer-events: auto;
}
