/* === FORCE WHITE FOOTER BACKGROUND === */
footer,
#footer,
.footer,
.site-footer,
.footer-widgets {
    background-color: #f5fafa!important;
}

/* === FORCE BLACK TEXT IN FOOTER === */
footer *,
#footer *,
.footer *,
.site-footer *,
.footer-widgets * {
    color: #000000 !important;
    background-color: transparent !important;
}

/* === FORCE BLACK LINK COLOR === */
footer a,
.footer a,
.site-footer a {
    color: #000000 !important;
}

/* === Optional: Link Hover === */
footer a:hover {
    color: #0073e6 !important; /* Blue on hover */
}
/* Stronger rule to keep footer paragraph text visible */
footer .widget p,
.site-footer .widget p,
#colophon .widget p,
#footer .widget p {
    color: #000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Super-specific targeting for Evolve Pro banners */
body .page-header .container .page-title,
body .page-header h1,
body h1.page-title,
body .entry-title,
body .page-header-inner h1 {
    color: #000 !important;
}

/* Force white background on all dropdowns */
header nav ul li ul,
header .main-navigation ul ul,
nav#site-navigation ul.sub-menu,
nav#site-navigation ul.children {
    background-color: #ffffff !important;
}

/* Force black text inside dropdowns */
header nav ul li ul li a,
header .main-navigation ul ul li a,
nav#site-navigation ul.sub-menu li a,
nav#site-navigation ul.children li a {
    color: #000000 !important;
}

/* === Checkout Container Styling === */
body.woocommerce-checkout .woocommerce {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
}

/* === Headings === */
body.woocommerce-checkout h3,
body.woocommerce-checkout h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #000 !important;
}

/* === Input Fields === */
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    background-color: #f9f9f9 !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

/* === Focus States === */
body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout select:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: none !important;
}

/* === Coupon & Login Boxes === */
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
    background-color: #f7f7f7 !important;
    border-left: 4px solid #000 !important;
    padding: 16px !important;
    font-size: 15px !important;
}

/* === Buttons === */
body.woocommerce-checkout button.button {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 16px !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    border: none !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s !important;
}

body.woocommerce-checkout button.button:hover {
    background-color: #ff0080 !important;
}

/* === Payment Section === */
body.woocommerce-checkout #payment {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 20px !important;
}

/* === Mobile Layout Fix === */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        display: block !important;
    }

    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100% !important;
        padding: 0 !important;
    }
}

/* === CART BUTTON COLORS === */
.woocommerce-cart .button,
.woocommerce .cart .button,
.woocommerce-page .cart .button,
.woocommerce a.button.alt,
.woocommerce a.button.checkout,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce .return-to-shop a.button {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease !important;
}

/* === Hover Effect === */
.woocommerce-cart .button:hover,
.woocommerce .cart .button:hover,
.woocommerce-page .cart .button:hover,
.woocommerce a.button.alt:hover,
.woocommerce a.button.checkout:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .return-to-shop a.button:hover {
    background-color: #ff0080 !important;
    color: #fff !important;
}

/* === Make ALL WooCommerce Buttons Black with White Text === */

/* General WooCommerce buttons (including 'View cart') */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-forward {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    padding: 10px 20px !important;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Force stock text to black regardless of theme styles */
.qodef-woo-single-product-stock .stock,
.qodef-woo-single-product-stock span.stock {
    color: #000 !important;
    font-weight: 600 !important;
    background: none !important;
}/* Ultra-specific override for In stock / Out of stock colors */
.single-product .qodef-woo-single-product-stock span.stock,
.qodef-woo-single-product-stock .stock {
    color: #000 !important;
    background: none !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: #000 !important;
}

/* Checkout two-column layout */
.custom-checkout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Left column = Billing */
.checkout-left {
    flex: 1;
    min-width: 55%;
}

/* Right column = Coupon, Your Order, Place Order */
.checkout-right {
    flex: 1;
    min-width: 40%;
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-checkout-wrapper {
        flex-direction: column;
    }
    .checkout-left, .checkout-right {
        min-width: 100%;
    }
}

/* Remove padding from the inner content container on homepage */
body.home #qodef-page-inner {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Make the outer wrapper full width with background */
body.home #qodef-page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #f1f5fa !important;
}

/* Make sure the header stays full width as well */
body.home header#qodef-page-header {
    width: 100% !important;
    max-width: 100% !important;
}

/* === FIX Evolve Pro WooCommerce Single Product Layout === */

/* Wrap the container properly */
body.single-product .qodef-woo-single-inner {
  display: grid !important;
  grid-template-columns: minmax(480px, 1fr) minmax(420px, 560px) !important;
  column-gap: 36px !important;
  align-items: start !important;
}

/* Ensure gallery doesn't shrink weirdly */
body.single-product .woocommerce-product-gallery,
body.single-product .qodef-woo-product-image {
  max-width: 560px !important;
  width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .qodef-woo-product-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Content column sizing */
body.single-product .summary.entry-summary {
  width: auto !important;
  max-width: 560px !important;
}

/* Product title — prevent letter-per-line issue */
body.single-product .product_title.entry-title {
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  word-break: break-word !important;
  max-width: 28ch !important;
  margin: 0 0 14px !important;
  display: block !important;
}

/* Sale badge position */
body.single-product .onsale {
  position: absolute !important;
  inset: 16px auto auto 16px !important;
  z-index: 2 !important;
}

/* Responsive behavior */
@media (max-width: 991px){
  body.single-product .qodef-woo-single-inner {
    grid-template-columns: 1fr !important;
  }
  body.single-product .product_title.entry-title {
    max-width: 100% !important;
    text-align: left !important;
  }
}

/* ==== SINGLE PRODUCT → Related / Upsells grid fix ==== */
.single-product .related.products .products,
.single-product .upsells.products .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 28px !important;
  align-items: start;
}

/* Reset any theme widths on li.product inside Related */
.single-product .related.products li.product,
.single-product .upsells.products li.product {
  width: auto !important;
  margin: 0 !important;
  position: relative; /* for badge */
}

/* Thumbnail sizing */
.single-product .related.products li.product img,
.single-product .upsells.products li.product img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* Title: readable line length (no letter-per-line) */
.single-product .related.products .woocommerce-loop-product__title,
.single-product .upsells.products .woocommerce-loop-product__title {
  white-space: normal !important;
  word-break: break-word !important;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.25;
  max-width: 22ch;          /* key: limit measure */
  margin: 10px 0 6px;
}

/* Prices and misc spacing */
.single-product .related.products .price,
.single-product .upsells.products .price {
  display: block;
  margin-top: 6px;
}

/* Keep SALE badge inside each card */
.single-product .related.products li.product .onsale,
.single-product .upsells.products li.product .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Optional: clean up wishlist/quick-view buttons showing gray boxes */
.single-product .related.products li.product .yith-wcwl-add-to-wishlist,
.single-product .upsells.products li.product .yith-wcwl-add-to-wishlist {
  margin-top: 6px;
  background: transparent !important;
  box-shadow: none !important;
}

/* === RELATED & UPSELLS: make a horizontal responsive grid === */
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important; /* desktop */
  gap: 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

/* neutralize theme floats/widths on product cards */
.woocommerce div.product .related.products ul.products li.product,
.woocommerce div.product .upsells.products ul.products li.product{
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  position: relative;
}

/* image & title tidy */
.woocommerce div.product .related.products li.product img,
.woocommerce div.product .upsells.products li.product img{
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}
.woocommerce div.product .related.products .woocommerce-loop-product__title,
.woocommerce div.product .upsells.products .woocommerce-loop-product__title{
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25;
  margin: 10px 0 6px;
}

/* responsive columns */
@media (max-width: 1200px){
  .woocommerce div.product .related.products ul.products,
  .woocommerce div.product .upsells.products ul.products{
    grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
  }
}
@media (max-width: 900px){
  .woocommerce div.product .related.products ul.products,
  .woocommerce div.product .upsells.products ul.products{
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}
@media (max-width: 560px){
  .woocommerce div.product .related.products ul.products,
  .woocommerce div.product .upsells.products ul.products{
    grid-template-columns: 1fr !important;
  }
}

