/* EP Badge CSS Variables - Required for badge system styling */
:root {
  --ep-badge-text: #ffffff;
  --ep-badge-sold-out-bg: #DC2626;
  --ep-badge-hot-bg: #F97316;
  --ep-badge-bestseller-bg: #2563EB;
  --ep-badge-new-bg: #059669;
  --ep-badge-sale-bg: #111827;
  --ep-badge-limited-bg: #7C3AED;
}

/* Emirates Peptides footer fixes (desktop + mobile)
   Safe overrides only; no structural template edits required. */

/* ============================================================
  PRODUCT GRIDS: remove outer card border across storefront loops
  ============================================================ */
html body.home .wd-products .wd-product.product-grid-item .wd-product-wrapper,
html body.home .woocommerce .products .product.product-grid-item .product-wrapper,
html body.archive.woocommerce .wd-products .wd-product.product-grid-item .wd-product-wrapper,
html body.archive.woocommerce .products .product.product-grid-item .product-wrapper,
html body.single-product .related-and-upsells .wd-product.product-grid-item .wd-product-wrapper,
html body.single-product .related-and-upsells .products .product.product-grid-item .product-wrapper,
html body.single-product .upsells-carousel .wd-product.product-grid-item .wd-product-wrapper,
html body.single-product .upsells-carousel .products .product.product-grid-item .product-wrapper,
html body.single-product .related-products .wd-product.product-grid-item .wd-product-wrapper,
html body.single-product .related-products .products .product.product-grid-item .product-wrapper {
  border: 0 !important;
  box-shadow: none !important;
}

/* ============================================================
   PRODUCT PAGE: CTA order — Quantity → BUY NOW → ADD TO CART
   (JS moves Buy Now wrapper inside form.cart before add-to-cart btn)
   ============================================================ */
/* Keep CTA reorder on simple products only. */
.woocommerce div.product form.cart:not(.variations_form) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.woocommerce div.product form.cart:not(.variations_form) .quantity {
  order: 1 !important;
  margin-bottom: 0 !important;
}

.woocommerce div.product form.cart:not(.variations_form) .woodmart-buy-now-btn-wrap,
.woocommerce div.product form.cart:not(.variations_form) .wd-buy-now-wrap,
.woocommerce div.product form.cart:not(.variations_form) .wc-buy-now-wrap,
.woocommerce div.product form.cart:not(.variations_form) [class*="buy-now-wrap"],
.woocommerce div.product form.cart:not(.variations_form) [class*="buy_now_wrap"] {
  order: 2 !important;
  width: 100% !important;
}

.woocommerce div.product form.cart:not(.variations_form) .single_add_to_cart_button {
  order: 3 !important;
  margin-top: 0 !important;
}

/* Restore variable-product pricing/add-to-cart flow on desktop. */
.woocommerce div.product form.cart.variations_form {
  display: block !important;
}

.woocommerce div.product form.cart.variations_form .woocommerce-variation,
.woocommerce div.product form.cart.variations_form .woocommerce-variation-price,
.woocommerce div.product form.cart.variations_form .woocommerce-variation-add-to-cart {
  float: none !important;
  text-align: left !important;
  width: 100% !important;
}

/* Mobile: tighten and normalize vertical rhythm in the CTA stack. */
@media (max-width: 767px) {
  .woocommerce div.product form.cart.variations_form .woocommerce-variation-price {
    margin-bottom: 10px !important;
  }

  .woocommerce div.product form.cart.variations_form .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .woocommerce div.product form.cart.variations_form .woocommerce-variation-add-to-cart .quantity {
    margin: 0 !important;
  }

  .woocommerce div.product form.cart.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
  .woocommerce div.product form.cart.variations_form .wd-buy-now-btn,
  .woocommerce div.product form.cart.variations_form .wd-buy-now-wrap,
  .woocommerce div.product form.cart.variations_form [class*="buy-now-wrap"],
  .woocommerce div.product form.cart.variations_form [class*="buy_now_wrap"] {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* BUY NOW button — black default */
.woocommerce div.product .wd-buy-now-btn,
.woocommerce div.product .wd-buy-now-btn:link,
.woocommerce div.product .wd-buy-now-btn:visited {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
}

.woocommerce div.product .wd-buy-now-btn:hover,
.woocommerce div.product .wd-buy-now-btn:focus {
  background-color: #222222 !important;
  border-color: #222222 !important;
  color: #ffffff !important;
}

/* WooCommerce product page: trust strip under gallery image
   Increase the micro-card type so the badges read more comfortably. */
html body .single-product .ep-image-trust-strip .ep-trust-mini {
  padding: 10px 11px !important;
  gap: 10px !important;
}

html body .single-product .ep-image-trust-strip .ep-trust-mini .ep-trust-mini-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 0.9rem !important;
}

html body .single-product .ep-image-trust-strip .ep-trust-mini strong {
  font-size: 0.88rem !important;
  line-height: 1.15 !important;
}

html body .single-product .ep-image-trust-strip .ep-trust-mini span:not(.ep-trust-mini-icon) {
  font-size: 0.78rem !important;
  line-height: 1.15 !important;
}

@media (max-width: 1024px) {
  html body .single-product .ep-image-trust-strip .ep-trust-mini {
    padding: 10px 10px !important;
    gap: 8px !important;
  }

  html body .single-product .ep-image-trust-strip .ep-trust-mini strong {
    font-size: 0.82rem !important;
  }

  html body .single-product .ep-image-trust-strip .ep-trust-mini span:not(.ep-trust-mini-icon) {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 600px) {
  html body .single-product .ep-image-trust-strip .ep-trust-mini {
    padding: 9px 10px !important;
  }

  html body .single-product .ep-image-trust-strip .ep-trust-mini strong {
    font-size: 0.8rem !important;
  }

  html body .single-product .ep-image-trust-strip .ep-trust-mini span:not(.ep-trust-mini-icon) {
    font-size: 0.66rem !important;
  }
}

:root {
  --ep-footer-text: #d4def2;
  --ep-footer-text-strong: #eef4ff;
  --ep-footer-divider: rgba(255, 255, 255, 0.16);
}

/* Global product-action alignment for loops only.
   Cart cross-sells use a different card layout, so exclude cart page here. */
html body:not(.woocommerce-cart) ul.products li.product.wd-product.wd-hover-icons .wrapp-buttons {
  left: 0 !important;
  right: 0 !important;
  inset-inline: 0 !important;
  transform: none !important;
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

html body:not(.woocommerce-cart) ul.products li.product.wd-product.wd-hover-icons .wrapp-buttons .wd-buttons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

html body:not(.woocommerce-cart) ul.products li.product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
}

html body:not(.woocommerce-cart) ul.products li.product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

@media (max-width: 767px) {
  html body:not(.woocommerce-cart) ul.products li.product.wd-product.wd-hover-icons .wrapp-buttons .wd-buttons {
    max-width: calc(100% - 12px) !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
}

/* Cart page only: polish cross-sell cards and anchor the action-icons row. */
html body.woocommerce-cart .cross-sells {
  margin-top: 42px !important;
  padding: 28px 26px 18px !important;
  border: 1px solid #e5edf7 !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

html body.woocommerce-cart .cross-sells > h2 {
  margin: 0 0 24px !important;
  color: #16233b !important;
  font-size: clamp(24px, 2.2vw, 30px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product {
  background: #ffffff !important;
  border: 1px solid #e7eef7 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(15, 31, 61, 0.06) !important;
  padding: 18px 18px 20px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product:hover {
  transform: translateY(-4px) !important;
  border-color: #d5e2f2 !important;
  box-shadow: 0 22px 46px rgba(15, 31, 61, 0.10) !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .wd-product-cats,
html body.woocommerce-cart .cross-sells .product.wd-product .product-category {
  display: block !important;
  width: 100% !important;
  min-height: 1.5em !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .wd-product-cats a,
html body.woocommerce-cart .cross-sells .product.wd-product .product-category a {
  display: inline !important;
  white-space: nowrap !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .ep-cross-sell-actions-host {
  display: flex !important;
  justify-content: center !important;
  margin: 14px 0 10px !important;
  min-height: 48px !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons {
  left: 0 !important;
  right: 0 !important;
  inset-inline: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-top: 0 !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons .wd-buttons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: max-content !important;
  gap: 4px !important;
  margin: 0 auto !important;
  padding: 4px !important;
  flex-wrap: nowrap !important;
  border: 1px solid #dce7f4 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(36, 59, 107, 0.08) !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn {
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  color: #233a69 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn > a:hover,
html body.woocommerce-cart .cross-sells .product.wd-product.wd-hover-icons .wrapp-buttons .wd-action-btn > a:focus {
  background: #eff5ff !important;
  color: #1e4db7 !important;
  transform: translateY(-1px) !important;
}
/* ============================================================
   CROSS-SELLS EQUAL HEIGHT CARDS
   ============================================================ */
html body.woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-auto-rows: 1fr !important;
  gap: 20px !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .product-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .wd-product-title,
html body.woocommerce-cart .cross-sells .product.wd-product h2,
html body.woocommerce-cart .cross-sells .product.wd-product h3 {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 2.8em !important;
}

html body.woocommerce-cart .cross-sells .product.wd-product .wd-product-cats,
html body.woocommerce-cart .cross-sells .product.wd-product .product-category {
  text-align: center !important;
}

@media (max-width: 767px) {
  html body.woocommerce-cart .cross-sells {
    padding: 22px 16px 14px !important;
    border-radius: 20px !important;
  }

  html body.woocommerce-cart .cross-sells > h2 {
    margin-bottom: 18px !important;
    font-size: 24px !important;
  }

  html body.woocommerce-cart .cross-sells .product.wd-product {
    padding: 16px 14px 18px !important;
    border-radius: 20px !important;
  }
}

/* Global readability improvements */
footer .footer-sidebar,
footer .footer-sidebar a,
footer .footer-sidebar .wd-contact-item,
footer .footer-sidebar .wd-list-content {
  color: var(--ep-footer-text);
}

footer .footer-sidebar .widget-title,
footer .footer-sidebar .widgettitle {
  color: var(--ep-footer-text-strong);
}

footer .footer-sidebar .widget-title,
footer .footer-sidebar ul,
footer .footer-sidebar .wd-contact-item {
  border-color: var(--ep-footer-divider);
}

/* ============================================================
   DESKTOP: force footer widgets into one-row 5-column layout
   ============================================================ */
@media (min-width: 1025px) {
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
  }

  /* Flatten column wrappers so each widget is a direct flex child */
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column-1,
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column-2 {
    display: contents !important;
  }

  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column-1 > .widget,
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column-2 > .widget,
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column-3 {
    float: none !important;
    clear: none !important;
    width: calc((100% - 96px) / 5) !important;
    max-width: calc((100% - 96px) / 5) !important;
    min-width: 0 !important;
    flex: 0 0 calc((100% - 96px) / 5) !important;
    margin: 0 !important;
  }
}

/* ============================================================
   DESKTOP: remove stray divider lines, white heading accent
   ============================================================ */
@media (min-width: 1025px) {
  html body footer .footer-sidebar .footer-column .widget,
  html body footer .footer-sidebar .footer-column ul,
  html body footer .footer-sidebar .footer-column li,
  html body footer .footer-sidebar .footer-column .menu,
  html body footer .footer-sidebar .footer-column .wd-list,
  html body footer .footer-sidebar .footer-column .wd-list li,
  html body footer .footer-sidebar .footer-column .wd-contact-item {
    border: 0 !important;
    box-shadow: none !important;
  }

  html body footer .footer-sidebar .footer-column .widget-title,
  html body footer .footer-sidebar .footer-column .widgettitle {
    position: relative !important;
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border: 0 !important;
  }

  /* White underline accent on heading (was yellow, now white) */
  html body footer .footer-sidebar .footer-column .widget-title::before,
  html body footer .footer-sidebar .footer-column .widgettitle::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 120px !important;
    height: 2px !important;
    background: #ffffff !important;
  }
}

/* ============================================================
   MOBILE: accordion — widget-level toggle, clean +/- icons
   ============================================================ */
@media (max-width: 1024px) {
  /* Flatten mobile columns so no inter-column gaps appear between menu rows */
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    row-gap: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
  }

  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g > .footer-column {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Force-hide any legacy heading accent line on mobile */
  html body footer .footer-sidebar .footer-column .widget-title::before,
  html body footer .footer-sidebar .footer-column .widgettitle::before {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Strip all borders/shadows/margins from accordion containers */
  html body footer .footer-sidebar .footer-column,
  html body footer .footer-sidebar .footer-column .widget,
  html body footer .footer-sidebar .widget_nav_menu,
  html body footer .footer-sidebar .widget_nav_menu > div,
  html body footer .footer-sidebar .widget_nav_menu ul,
  html body footer .footer-sidebar .widget_nav_menu .menu,
  html body footer .footer-sidebar .widget_nav_menu li {
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  /* Neutralise any legacy pseudo-element on non-widget titles */
  html body footer .footer-sidebar .footer-column .widget-title::after {
    content: '' !important;
    display: none !important;
  }

  html body footer .footer-sidebar .widget_nav_menu,
  html body footer .footer-sidebar .widget_nav_menu + .widget_nav_menu,
  html body footer .footer-sidebar .widget_nav_menu > div,
  html body footer .footer-sidebar .widget_nav_menu > div > ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Neutralize Woodmart collapse spacer above hidden menu wrappers */
  html body footer .footer-sidebar .widget_nav_menu > .widget-title ~ *,
  html body footer .footer-sidebar .widget_nav_menu.wd-widget-collapse > .widget-title ~ * {
    margin-top: 0 !important;
  }

  /* Keep footer columns flush on mobile (no row-to-row phantom gaps) */
  html body footer .footer-sidebar .footer-column-1,
  html body footer .footer-sidebar .footer-column-2,
  html body footer .footer-sidebar .footer-column-3 {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
  }

  /* Tappable heading row with bottom divider */
  html body footer .footer-sidebar .widget_nav_menu > .widget-title,
  html body footer .footer-sidebar .widget_nav_menu > .widgettitle {
    display: block !important;
    text-align: left !important;
    width: 100% !important;
    padding-right: 36px !important;
    font-size: 15px !important;
  }

  html body footer .footer-sidebar .widget_nav_menu > .widget-title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 14px 36px 14px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  }

  html body footer .footer-sidebar .widget_nav_menu > .widget-title,
  html body footer .footer-sidebar .widget_nav_menu > .widgettitle {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* + icon (collapsed state, default) */
  html body footer .footer-sidebar .widget_nav_menu > .widget-title::after {
    content: '+' !important;
    display: block !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
  }

  /* - icon (expanded state) */
  html body footer .footer-sidebar .widget_nav_menu.ep-expanded > .widget-title::after {
    content: '-' !important;
  }

  /* Show the div wrapper when expanded */
  html body footer .footer-sidebar .widget_nav_menu.ep-expanded > div {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body footer .footer-sidebar .widget_nav_menu.ep-expanded > div > ul,
  html body footer .footer-sidebar .widget_nav_menu.ep-expanded > ul,
  html body footer .footer-sidebar .widget_nav_menu.ep-expanded .menu {
    display: block !important;
    padding: 6px 0 10px 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  html body footer .footer-sidebar .widget_nav_menu.ep-expanded li {
    text-align: left !important;
    margin: 0 !important;
  }

  html body footer .footer-sidebar .widget_nav_menu.ep-expanded li a {
    display: block !important;
    text-align: left !important;
    padding: 8px 0 !important;
    line-height: 1.35 !important;
  }

  /* Hide the div wrapper when collapsed */
  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local > div {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local > div > ul,
  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local > ul,
  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local .menu {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local,
  html body footer .footer-sidebar .widget_nav_menu.ep-collapsed-local + .widget_nav_menu,
  html body footer .footer-sidebar .wd-widget.widget_nav_menu,
  html body footer .footer-sidebar .wd-widget.widget_nav_menu + .wd-widget.widget_nav_menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Contact/list text size */
  html body footer .footer-sidebar .wd-list .wd-list-content,
  html body footer .footer-sidebar .wd-list .wd-list-content a {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
  }

  /* Copyright bar */
  footer .copyrights-wrapper,
  footer .footer-bottom,
  footer .footer-copyright,
  footer .copyrights,
  footer .footer-copyright p {
    color: #c7d6f4;
  }
}

/* EP mobile icons force-show v1 */
@media (max-width: 1024px) {
  html body .wd-product.wd-hover-icons .wd-buttons :is(.wd-quick-view-icon,.wd-compare-btn),
  html body .wd-product.wd-hover-icons .wd-buttons .wd-quick-view-btn,
  html body .wd-product.wd-hover-icons .wd-buttons .wd-compare-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body .wd-product.wd-hover-icons .wd-buttons {
    overflow: visible !important;
  }
}
/* End EP mobile icons force-show v1 */

/* ============================================================
   CART PAGE: premium polish pass (brand-forward, calm luxury)
   ============================================================ */
html body.woocommerce-cart {
  --ep-cart-ink: #111827;
  --ep-cart-muted: #6b7280;
  --ep-cart-line: #e5e7eb;
  --ep-cart-line-soft: #eef2f7;
  --ep-cart-surface: #ffffff;
  --ep-cart-surface-tint: #f8fafc;
  --ep-cart-accent: #1f4fbf;
  --ep-cart-accent-hover: #173f9d;
  --ep-cart-shadow-soft: 0 12px 36px rgba(17, 24, 39, 0.06);
}

html body.woocommerce-cart .site-content,
html body.woocommerce-cart .entry-content {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 45%) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart {
  border: 1px solid var(--ep-cart-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04) !important;
  background: var(--ep-cart-surface) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart thead th {
  background: #111827 !important;
  color: #f9fafb !important;
  border: none !important;
  padding: 16px 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td {
  border-bottom: 1px solid var(--ep-cart-line-soft) !important;
  padding: 22px 18px !important;
  vertical-align: middle !important;
  background: transparent !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart tr.cart_item:hover td {
  background: #fbfdff !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-name a {
  color: var(--ep-cart-ink) !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price,
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price .amount {
  color: var(--ep-cart-muted) !important;
  font-size: 30px !important;
  font-weight: 500 !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal,
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal .amount {
  color: var(--ep-cart-accent) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-thumbnail img {
  width: 84px !important;
  height: 84px !important;
  border-radius: 12px !important;
  border: 1px solid var(--ep-cart-line-soft) !important;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.05) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #d6deea !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  overflow: hidden !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .minus,
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .plus {
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  background: #f1f5fb !important;
  color: #1f2937 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .minus:hover,
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .plus:hover {
  background: #e6eef9 !important;
  color: #0f172a !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .qty {
  width: 44px !important;
  height: 40px !important;
  border: 0 !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

html body.woocommerce-cart .cart_totals {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #dbe5f3 !important;
  border-radius: 18px !important;
  padding: 26px !important;
  box-shadow: var(--ep-cart-shadow-soft) !important;
}

html body.woocommerce-cart .cart_totals h2 {
  color: #0f172a !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  margin: 0 0 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #dce6f4 !important;
}

html body.woocommerce-cart .cart_totals .shop_table th,
html body.woocommerce-cart .cart_totals .shop_table td {
  padding: 14px 0 !important;
  border-color: #e6edf8 !important;
}

html body.woocommerce-cart .cart_totals .order-total th,
html body.woocommerce-cart .cart_totals .order-total td,
html body.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 52px !important;
  font-weight: 700 !important;
  color: var(--ep-cart-accent) !important;
  letter-spacing: -0.02em !important;
}

html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
html body.woocommerce-cart .cart_totals .checkout-button {
  min-height: 56px !important;
  border-radius: 12px !important;
  border: 1px solid #1b46ab !important;
  background: linear-gradient(180deg, #2c60d2 0%, #1f4fbf 100%) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 14px 24px rgba(31, 79, 191, 0.26) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
html body.woocommerce-cart .cart_totals .checkout-button:hover {
  background: linear-gradient(180deg, #2756c3 0%, #173f9d 100%) !important;
  box-shadow: 0 18px 30px rgba(23, 63, 157, 0.30) !important;
  transform: translateY(-1px) !important;
}

html body.woocommerce-cart .cart_totals .checkout-button.ep-min-order-disabled,
html body.woocommerce-cart .cart_totals .checkout-button.ep-min-order-disabled:hover,
html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button.ep-min-order-disabled,
html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button.ep-min-order-disabled:hover {
  background: linear-gradient(180deg, #9ca3af 0%, #8b95a5 100%) !important;
  border-color: #8b95a5 !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.woocommerce-cart .actions .coupon .input-text {
  border-radius: 10px !important;
  border: 1px solid #d8e0ed !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
}

html body.woocommerce-cart .actions .coupon .button,
html body.woocommerce-cart .actions > .button {
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid #d8e0ed !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

html body.woocommerce-cart .actions .coupon .button {
  border-color: #1f4fbf !important;
  background: #1f4fbf !important;
  color: #ffffff !important;
}

html body.woocommerce-cart .actions .coupon .button:hover {
  background: #173f9d !important;
}

@media (max-width: 1024px) {
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-name a {
    font-size: 17px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price .amount,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal .amount {
    font-size: 22px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th,
  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 40px !important;
  }
}

@media (max-width: 767px) {
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td {
    padding: 14px 12px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-name a {
    font-size: 16px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price .amount,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal .amount {
    font-size: 18px !important;
  }

  html body.woocommerce-cart .cart_totals {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  html body.woocommerce-cart .cart_totals h2 {
    font-size: 28px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th,
  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 34px !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 17px !important;
  }
}

/* ============================================================
   CART PAGE DESKTOP LAYOUT FIX: keep totals on right column
   ============================================================ */
@media (min-width: 1200px) {
  html body.woocommerce-cart .cart-content-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px) !important;
    grid-template-areas:
      "notice notice"
      "form totals"
      "cross cross" !important;
    column-gap: 30px !important;
    row-gap: 28px !important;
    align-items: start !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > .woocommerce-notices-wrapper,
  html body.woocommerce-cart .cart-content-wrapper > .woocommerce-message,
  html body.woocommerce-cart .cart-content-wrapper > .woocommerce-info,
  html body.woocommerce-cart .cart-content-wrapper > .woocommerce-error {
    grid-area: notice !important;
    margin: 0 !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > form.woocommerce-cart-form {
    grid-area: form !important;
    margin: 0 !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > .cart_totals {
    grid-area: totals !important;
    margin: 0 !important;
    position: static !important;
    top: auto !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > .cross-sells {
    grid-area: cross !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 1199px) {
  html body.woocommerce-cart .cart-content-wrapper > .cart_totals {
    position: static !important;
  }
}

/* ============================================================
   CART PAGE DESKTOP HOTFIX: prevent totals overlap with table
   ============================================================ */
@media (min-width: 1200px) {
  html body.woocommerce-cart .cart-content-wrapper {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    column-gap: 24px !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > form.woocommerce-cart-form,
  html body.woocommerce-cart .cart-content-wrapper > form.woocommerce-cart-form .shop_table.cart {
    min-width: 0 !important;
    width: 100% !important;
  }

  html body.woocommerce-cart .cart-content-wrapper > form.woocommerce-cart-form .shop_table.cart {
    table-layout: auto !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart thead th {
    white-space: nowrap !important;
    font-size: 10px !important;
    letter-spacing: 0.05em !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart th.product-remove,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-remove {
    width: 48px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart th.product-thumbnail,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-thumbnail {
    width: 86px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart th.product-quantity,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-quantity {
    width: 132px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart th.product-price,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart th.product-subtotal,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal {
    width: 132px !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-name,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-name a {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-price .amount,
  html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart td.product-subtotal .amount {
    font-size: 16px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 360px !important;
    overflow: visible !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table {
    table-layout: auto !important;
    width: 100% !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th {
    width: 40% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table td {
    width: 60% !important;
    text-align: right !important;
    font-size: 15px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  html body.woocommerce-cart .cart_totals .shipping th,
  html body.woocommerce-cart .cart_totals .shipping td {
    vertical-align: top !important;
  }

  html body.woocommerce-cart .cart_totals .shipping td {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 20px !important;
    line-height: 1.15 !important;
    color: #1f2937 !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 32px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    min-height: 52px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    margin-top: 14px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td {
    overflow: visible !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td .amount {
    display: inline-block !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   CART TOTALS TYPOGRAPHY LOCK (final)
   ============================================================ */
html body.woocommerce-cart .cart_totals h2 {
  font-size: 18px !important;
  line-height: 1.12 !important;
}

html body.woocommerce-cart .cart_totals .shop_table th,
html body.woocommerce-cart .cart_totals .shop_table td {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

html body.woocommerce-cart .cart_totals .shipping td,
html body.woocommerce-cart .cart_totals .shipping td * {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

html body.woocommerce-cart .cart_totals .order-total th {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

html body.woocommerce-cart .cart_totals .order-total td,
html body.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 42px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
html body.woocommerce-cart .cart_totals .checkout-button {
  font-size: 13px !important;
  line-height: 1.1 !important;
}

@media (max-width: 1199px) {
  html body.woocommerce-cart .cart_totals h2 {
    font-size: 34px !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th,
  html body.woocommerce-cart .cart_totals .shop_table td,
  html body.woocommerce-cart .cart_totals .shipping td,
  html body.woocommerce-cart .cart_totals .shipping td * {
    font-size: 15px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 18px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 36px !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  html body.woocommerce-cart .cart_totals h2 {
    font-size: 32px !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th,
  html body.woocommerce-cart .cart_totals .shop_table td,
  html body.woocommerce-cart .cart_totals .shipping td,
  html body.woocommerce-cart .cart_totals .shipping td * {
    font-size: 14px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 18px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 32px !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 12px !important;
  }
}

/* ============================================================
   CART TOTALS TYPOGRAPHY LOCK v2 (final authority)
   ============================================================ */
@media (min-width: 1200px) {
  html body.woocommerce-cart .cart_totals h2 {
    font-size: 16px !important;
    line-height: 1.12 !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th,
  html body.woocommerce-cart .cart_totals .shop_table td {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  html body.woocommerce-cart .cart_totals .shipping td,
  html body.woocommerce-cart .cart_totals .shipping td * {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 30px !important;
    line-height: 1.06 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 12px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 1199px) {
  html body.woocommerce-cart .cart_totals h2 {
    font-size: 28px !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th,
  html body.woocommerce-cart .cart_totals .shop_table td,
  html body.woocommerce-cart .cart_totals .shipping td,
  html body.woocommerce-cart .cart_totals .shipping td * {
    font-size: 14px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 17px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 30px !important;
  }

  html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
  html body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 12px !important;
  }
}

@media (max-width: 767px) {
  html body.woocommerce-cart .cart_totals h2 {
    font-size: 24px !important;
  }

  html body.woocommerce-cart .cart_totals .shop_table th,
  html body.woocommerce-cart .cart_totals .shop_table td,
  html body.woocommerce-cart .cart_totals .shipping td,
  html body.woocommerce-cart .cart_totals .shipping td * {
    font-size: 13px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total th {
    font-size: 16px !important;
  }

  html body.woocommerce-cart .cart_totals .order-total td,
  html body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 26px !important;
  }
}

/* ============================================================
   QUICK-VIEW MODAL OPTIMIZATION
   ============================================================ */

/* Larger product image in modal */
.wd-quick-view-content .product-images,
.wd-modal .product-images,
.mpc-modal .product-images {
  flex: 0 0 45% !important;
  max-width: 55% !important;
}

.wd-quick-view-content .product-images img,
.wd-modal .product-images img,
.mpc-modal .product-images img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Boost product title font size */
.wd-quick-view-content .product-title,
.wd-quick-view-content h1,
.wd-quick-view-content h2,
.wd-modal .product-title,
.wd-modal h1,
.wd-modal h2,
.mpc-modal .product-title,
.mpc-modal h1,
.mpc-modal h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin-bottom: 12px !important;
}

/* Enhance modal content spacing */
.wd-quick-view-content .summary,
.wd-modal .summary,
.mpc-modal .summary {
  flex: 1 !important;
  padding: 0 !important;
}

.wd-quick-view-content .entry-summary,
.wd-modal .entry-summary,
.mpc-modal .entry-summary {
  padding: 24px 24px 0 24px !important;
}

/* Price styling in modal */
.wd-quick-view-content .price,
.wd-modal .price,
.mpc-modal .price {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

/* Quantity input improvements */
.wd-quick-view-content .quantity,
.wd-modal .quantity,
.mpc-modal .quantity {
  margin-bottom: 18px !important;
}

.wd-quick-view-content .quantity label,
.wd-modal .quantity label,
.mpc-modal .quantity label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: #4b5563 !important;
}

/* Modal container proportions */
.wd-modal,
.mpc-modal,
.wd-quick-view-modal {
  max-width: 90vw !important;
  max-height: 90vh !important;
}

.wd-modal .modal-content,
.mpc-modal .modal-content {
  display: flex !important;
  gap: 32px !important;
  padding: 24px !important;
}
/* ============================================================
   MODAL TYPOGRAPHY STANDARDIZATION (fix uneven sizing)
   ============================================================ */

/* Standardize all modal row labels */
.wd-quick-view-content .product-meta-row dt,
.wd-modal .product-meta-row dt,
.mpc-modal .product-meta-row dt,
.wd-quick-view-content p:has(strong),
.wd-modal p:has(strong),
.mpc-modal p:has(strong) {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  margin-bottom: 6px !important;
}

/* Standardize all modal row values */
.wd-quick-view-content .product-meta-row dd,
.wd-modal .product-meta-row dd,
.mpc-modal .product-meta-row dd,
.wd-quick-view-content .price .woocommerce-Price-amount,
.wd-modal .price .woocommerce-Price-amount,
.mpc-modal .price .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}

/* Consistent spacing between rows */
.wd-quick-view-content .product-meta-row,
.wd-modal .product-meta-row,
.mpc-modal .product-meta-row,
.wd-quick-view-content .product-meta,
.wd-modal .product-meta,
.mpc-modal .product-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #eef2f8 !important;
  gap: 16px !important;
}

.wd-quick-view-content .product-meta-row:last-child,
.wd-modal .product-meta-row:last-child,
.mpc-modal .product-meta-row:last-child {
  border-bottom: none !important;
}

/* Fix subtotal styling to match other rows */
.wd-quick-view-content .subtotal-row,
.wd-modal .subtotal-row,
.mpc-modal .subtotal-row,
.wd-quick-view-content .subtotal,
.wd-modal .subtotal,
.mpc-modal .subtotal {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 0 12px 0 !important;
  margin-top: 8px !important;
}

.wd-quick-view-content .subtotal strong,
.wd-modal .subtotal strong,
.mpc-modal .subtotal strong,
.wd-quick-view-content .subtotal label,
.wd-modal .subtotal label,
.mpc-modal .subtotal label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e4db7 !important;
}

.wd-quick-view-content .subtotal .amount,
.wd-modal .subtotal .amount,
.mpc-modal .subtotal .amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e4db7 !important;
}
/* ============================================================
   WOOCOMMERCE EMAIL TEMPLATE POLISH
   ============================================================ */

/* Email body & container */
.woocommerce-email,
.woocommerce-email-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: #1f2937 !important;
  line-height: 1.6 !important;
}

/* Email header with logo area */
.woocommerce-email-header {
  border-bottom: 2px solid #e5edf7 !important;
  padding: 32px 0 24px 0 !important;
  margin-bottom: 32px !important;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
}

.woocommerce-email-header img,
.woocommerce-email-header .site-title {
  max-width: 280px !important;
  height: auto !important;
}

/* Main heading - "Thank you for your order" */
.woocommerce-email h1,
.woocommerce-email-content h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #16233b !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

/* Section headings - Downloads, Order summary, etc */
.woocommerce-email h2,
.woocommerce-email-content h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #16233b !important;
  margin: 28px 0 16px 0 !important;
  letter-spacing: -0.01em !important;
  border-bottom: 2px solid #e5edf7 !important;
  padding-bottom: 12px !important;
}

/* Greeting text */
.woocommerce-email p {
  font-size: 14px !important;
  color: #4b5563 !important;
  margin: 0 0 14px 0 !important;
}

/* Email tables - Downloads, Order Summary */
.woocommerce-email table,
.woocommerce-email-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  font-size: 14px !important;
}

.woocommerce-email table thead,
.woocommerce-email-content table thead {
  background: #f8fbff !important;
  border-bottom: 2px solid #d8e0ed !important;
}

.woocommerce-email table th,
.woocommerce-email-content table th {
  padding: 14px 12px !important;
  text-align: left !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  font-size: 13px !important;
  letter-spacing: 0.05em !important;
}

.woocommerce-email table td,
.woocommerce-email-content table td {
  padding: 14px 12px !important;
  border-bottom: 1px solid #eef2f8 !important;
  color: #4b5563 !important;
}

.woocommerce-email table tr:last-child td,
.woocommerce-email-content table tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-email table tbody tr:hover,
.woocommerce-email-content table tbody tr:hover {
  background: #fafbff !important;
}

/* Product quantity column */
.woocommerce-email .quantity-column,
.woocommerce-email table .quantity {
  text-align: center !important;
  font-weight: 600 !important;
}

/* Order details section */
.woocommerce-email .order-details,
.woocommerce-email-footer-details {
  margin: 28px 0 !important;
  padding: 20px !important;
  background: #f8fbff !important;
  border-left: 4px solid #1e4db7 !important;
  border-radius: 8px !important;
}

.woocommerce-email .order-details dt,
.woocommerce-email .order-details strong {
  font-weight: 700 !important;
  color: #1f2937 !important;
  font-size: 14px !important;
}

.woocommerce-email .order-details dd,
.woocommerce-email .order-details span {
  color: #4b5563 !important;
  margin-left: 0 !important;
  font-size: 14px !important;
}

/* Order totals - Amount emphasis */
.woocommerce-email .order-total,
.woocommerce-email-content strong.total-amount {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e4db7 !important;
}

/* Links in email */
.woocommerce-email a,
.woocommerce-email-content a {
  color: #1e4db7 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.woocommerce-email a:hover,
.woocommerce-email-content a:hover {
  text-decoration: underline !important;
  color: #173f9d !important;
}

/* Download link styling */
.woocommerce-email .download-link,
.woocommerce-email a.download {
  display: inline-block !important;
  padding: 8px 16px !important;
  background: #eff5ff !important;
  border: 1px solid #d8e0ed !important;
  border-radius: 6px !important;
  color: #1e4db7 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.woocommerce-email a.download:hover {
  background: #e0eaff !important;
  border-color: #1e4db7 !important;
}

/* Email footer */
.woocommerce-email-footer,
.woocommerce-email-footer-text {
  border-top: 2px solid #e5edf7 !important;
  padding-top: 24px !important;
  margin-top: 32px !important;
  text-align: center !important;
  font-size: 12px !important;
  color: #6b7280 !important;
}

.woocommerce-email-footer p {
  margin: 8px 0 !important;
  font-size: 12px !important;
}

/* Company info at bottom */
.woocommerce-email-company-info,
.woocommerce-email-address {
  padding: 20px 0 !important;
  border-top: 1px solid #e5edf7 !important;
  margin-top: 20px !important;
  text-align: center !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

/* Customer note if present */
.woocommerce-email .customer-note,
.woocommerce-email-customer-details {
  margin: 24px 0 !important;
  padding: 16px !important;
  background: #fef3c7 !important;
  border-left: 4px solid #f59e0b !important;
  border-radius: 6px !important;
  font-size: 13px !important;
}

.woocommerce-email .customer-note strong {
  color: #92400e !important;
  display: block !important;
  margin-bottom: 6px !important;
}

.woocommerce-email .customer-note p {
  color: #92400e !important;
  margin: 0 !important;
}
/* ============================================================
   TEMPORARY PREVIEW: SHOPIFY PLUS-INSPIRED CART POLISH
   Review on staging before keeping.
   ============================================================ */
body.woocommerce-cart .site-content,
body.woocommerce-cart .entry-content {
  background: #f3f3f0 !important;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .cross-sells {
  background: #ffffff !important;
  border: 1px solid #e3e3de !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.woocommerce-cart .woocommerce-cart-form {
  padding: 18px 20px !important;
}

body.woocommerce-cart .cart_totals {
  padding: 22px !important;
}

body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .cross-sells > h2 {
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
  border: 0 !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

body.woocommerce-cart .shop_table.cart thead th,
body.woocommerce-cart .cart_totals .shop_table th {
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  background: transparent !important;
}

body.woocommerce-cart .shop_table.cart td,
body.woocommerce-cart .cart_totals .shop_table td {
  font-size: 14px !important;
  color: #111827 !important;
  border-color: #ecece7 !important;
}

body.woocommerce-cart .shop_table.cart td.product-name a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

body.woocommerce-cart .shop_table.cart td.product-thumbnail img {
  border-radius: 8px !important;
  border: 1px solid #ecece7 !important;
}

body.woocommerce-cart .quantity {
  border: 1px solid #d6d6d1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

body.woocommerce-cart .quantity .plus,
body.woocommerce-cart .quantity .minus {
  background: #ffffff !important;
  color: #111827 !important;
}

body.woocommerce-cart .coupon input.input-text {
  min-height: 44px !important;
  border: 1px solid #d6d6d1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.woocommerce-cart .coupon button,
body.woocommerce-cart button[name="update_cart"] {
  min-height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #d6d6d1 !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart_totals .order-total th {
  font-size: 12px !important;
  color: #4b5563 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 28px !important;
  line-height: 1.05 !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .cart_totals .checkout-button {
  min-height: 52px !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .cart_totals .checkout-button:hover {
  background: #000000 !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (min-width: 1200px) {
  body.woocommerce-cart .cart_totals {
    position: sticky !important;
    top: 92px !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals,
  body.woocommerce-cart .cross-sells {
    border-radius: 10px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals {
    padding: 16px !important;
  }

  body.woocommerce-cart .cart_totals .order-total td,
  body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 24px !important;
  }
}





/* EP CART REMOVE DOUBLE-X MOBILE HOTFIX (2026-04-13) */
@media (max-width: 767px) {
  html body.woocommerce-cart.woocommerce-page .shop_table.cart td.product-quantity .quantity a.remove.ep-cart-inline-remove {
    font-size: 0 !important;
    line-height: 1 !important;
  }

  html body.woocommerce-cart.woocommerce-page .shop_table.cart td.product-quantity .quantity a.remove.ep-cart-inline-remove::before {
    content: none !important;
    display: none !important;
  }

  html body.woocommerce-cart.woocommerce-page .shop_table.cart td.product-quantity .quantity a.remove.ep-cart-inline-remove::after {
    content: '\00d7' !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }
}

/* ============================================================
   EP MOBILE MENU FONT v1 — 2026-04-13
   Reverted from Gymshark full redesign to original lightweight type scale tweak.
   Maintainer note: keep this block minimal and typography-only.
   ============================================================ */

.mobile-nav .wd-nav-mobile .menu-item > a.woodmart-nav-link,
.mobile-nav ul.menu > li > a {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.mobile-nav .wd-sub-menu > li > a.woodmart-nav-link,
.mobile-nav .wd-sub-menu > li > a {
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

/* EP mobile footer disclaimer line hide v1 */
@media (max-width: 767px) {
  footer .copyrights-wrapper {
    border-top: 0 !important;
  }
}

/* EP mobile footer logo top spacing v1 */
@media (max-width: 1024px) {
  html body footer .container.main-footer > aside.footer-sidebar.wd-grid-g {
    padding-top: 15px !important;
  }
}



/* EP SOLD-OUT BADGE RED PILL v3
   Root cause: .wd-product-thumb has overflow:hidden (upgraded to overflow:clip)
   which clips the badge when it extends beyond the thumbnail area.
   Fix: force overflow:visible on the thumbnail container for out-of-stock items. */
.wd-product.outofstock .wd-product-thumb,
.wd-product.outofstock .wd-product-img-link,
.wd-product.outofstock .product-image-link {
  overflow: visible !important;
}
.product-labels:has(.out-of-stock) {
  max-width: none !important;
  overflow: visible !important;
}
.product-label.wd-shape-round.out-of-stock,
.product-label.out-of-stock,
.product-label.wd-shape-round.featured,
.product-label.featured {
  max-width: none !important;
  min-height: auto !important;
  min-width: auto !important;
  border-radius: 3px !important;
  padding: 3px 8px !important;
  background-color: #dc2626 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  word-break: normal !important;
  line-height: 1 !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: unset !important;
  text-align: center !important;
}
@media (max-width: 576px) {
  .product-label.wd-shape-round.out-of-stock,
  .product-label.out-of-stock,
  .product-label.wd-shape-round.featured,
  .product-label.featured {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }
}

/* EP BADGE SIZE LOCK v1 (2026-04-14)
   Force identical label chip dimensions for SOLD OUT / HOT / BESTSELLER
   across home, shop/category loops, and single-product related loops. */
.wd-product .product-labels > span,
.wd-product .product-labels .product-label,
.wd-product .wd-product-labels > span,
.wd-product .wd-product-label,
.single-product .products .product-labels > span,
.single-product .products .wd-product-labels > span {
  border-radius: 3px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  transform: none !important;
  -webkit-transform: none !important;
}

@media (max-width: 576px) {
  .wd-product .product-labels > span,
  .wd-product .product-labels .product-label,
  .wd-product .wd-product-labels > span,
  .wd-product .wd-product-label,
  .single-product .products .product-labels > span,
  .single-product .products .wd-product-labels > span {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }
}

/* EP BADGE SIZE LOCK v2 (2026-04-14; 2026-06-13 dead page-builder selectors removed) */
body .wd-product.wd-product .product-labels.product-labels > span.product-label,
body .wd-product.wd-product .wd-product-labels.wd-product-labels > span.wd-product-label {
  border-radius: 3px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
}

@media (max-width: 576px) {
  body .wd-product.wd-product .product-labels.product-labels > span.product-label,
  body .wd-product.wd-product .wd-product-labels.wd-product-labels > span.wd-product-label {
    padding: 2px 6px !important;
    font-size: 10px !important;
  }
}

/* EP BADGE COLOR SYSTEM v1 (2026-04-14)
   Canonical badge palette for all product-loop badges. */
:root {
  --ep-badge-text: #ffffff;
  --ep-badge-sold-out-bg: #DC2626;
  --ep-badge-hot-bg: #F97316;
  --ep-badge-bestseller-bg: #2563EB;
  --ep-badge-new-bg: #059669;
  --ep-badge-sale-bg: #111827;
  --ep-badge-limited-bg: #7C3AED;
}

body .wd-product .product-labels > span.out-of-stock,
body .wd-product .product-labels .product-label.out-of-stock,
body .wd-product .wd-product-labels > span.out-of-stock,
body .wd-product .wd-product-labels .wd-product-label.out-of-stock,
body .single-product .products .product-labels > span.out-of-stock,
body .single-product .products .wd-product-labels > span.out-of-stock {
  background: var(--ep-badge-sold-out-bg) !important;
  background-color: var(--ep-badge-sold-out-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12) !important;
}

body .wd-product .product-labels > span.featured,
body .wd-product .product-labels .product-label.featured,
body .wd-product .product-labels > span.hot,
body .wd-product .product-labels .product-label.hot,
body .wd-product .wd-product-labels > span.featured,
body .wd-product .wd-product-labels .wd-product-label.featured,
body .single-product .products .product-labels > span.featured,
body .single-product .products .product-labels > span.hot,
body .single-product .products .wd-product-labels > span.featured,
body .single-product .products .wd-product-labels > span.hot {
  background: var(--ep-badge-hot-bg) !important;
  background-color: var(--ep-badge-hot-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.16) !important;
}

body .wd-product .product-labels > span.ep-badge-bestseller,
body .wd-product .product-labels .product-label.ep-badge-bestseller,
body .wd-product .wd-product-labels > span.ep-badge-bestseller,
body .wd-product .wd-product-labels .wd-product-label.ep-badge-bestseller,
body .single-product .products .product-labels > span.ep-badge-bestseller,
body .single-product .products .wd-product-labels > span.ep-badge-bestseller {
  background: var(--ep-badge-bestseller-bg) !important;
  background-color: var(--ep-badge-bestseller-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.16) !important;
}

body .wd-product .product-labels > span.new-label,
body .wd-product .product-labels .product-label.new-label,
body .wd-product .wd-product-labels > span.new-label,
body .wd-product .wd-product-labels .wd-product-label.new-label,
body .wd-product .product-labels > span.ep-badge-new,
body .single-product .products .product-labels > span.new-label,
body .single-product .products .wd-product-labels > span.new-label {
  background: var(--ep-badge-new-bg) !important;
  background-color: var(--ep-badge-new-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.16) !important;
}

body .wd-product .product-labels > span.onsale,
body .wd-product .product-labels .product-label.onsale,
body .wd-product .wd-product-labels > span.onsale,
body .wd-product .wd-product-labels .wd-product-label.onsale,
body .wd-product .product-labels > span.ep-badge-sale,
body .single-product .products .product-labels > span.onsale,
body .single-product .products .wd-product-labels > span.onsale,
body span.onsale.ep-badge-sale {
  background: var(--ep-badge-sale-bg) !important;
  background-color: var(--ep-badge-sale-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.18) !important;
}

body .wd-product .product-labels > span.ep-badge-limited,
body .wd-product .product-labels .product-label.ep-badge-limited,
body .wd-product .wd-product-labels > span.ep-badge-limited,
body .single-product .products .product-labels > span.ep-badge-limited {
  background: var(--ep-badge-limited-bg) !important;
  background-color: var(--ep-badge-limited-bg) !important;
  color: var(--ep-badge-text) !important;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.16) !important;
}


/* ============================================================
   EP PILL QTY REDESIGN v1 — cart page
   ============================================================ */
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity,
body.woocommerce-cart .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 9999px !important;
  background: #f3f4f6 !important;
  overflow: visible !important;
  padding: 3px !important;
  gap: 2px !important;
  box-shadow: none !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .minus,
html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .plus,
body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border: 0 !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
  line-height: 1 !important;
  padding: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .minus,
body.woocommerce-cart .quantity .minus {
  background: #1f2937 !important;
  color: #ffffff !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .minus:hover,
body.woocommerce-cart .quantity .minus:hover {
  background: #111827 !important;
  transform: scale(1.08) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .plus,
body.woocommerce-cart .quantity .plus {
  background: #2563eb !important;
  color: #ffffff !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .plus:hover,
body.woocommerce-cart .quantity .plus:hover {
  background: #1d4ed8 !important;
  transform: scale(1.08) !important;
}

html body.woocommerce-cart .woocommerce-cart-form .shop_table.cart .quantity .qty,
body.woocommerce-cart .quantity .qty {
  width: 40px !important;
  height: 36px !important;
  border: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
  -moz-appearance: textfield !important;
}

html body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button,
html body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Trash icon when qty = 1 */
html body.woocommerce-cart .quantity.qty-is-one .minus,
body.woocommerce-cart .quantity.qty-is-one .minus {
  font-size: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 21c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V7H7v14zm2-12h2v10H9V9zm4 0h2v10h-2V9zM15.5 4l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
}

/* EP mobile footer toolbar clearance v1 — 2026-06-12
   The fixed WoodMart toolbar was cutting through footer accordion/disclaimer
   content on iOS-sized viewports. Keep the toolbar sitewide, but slide it
   away while the footer is in view and reserve enough footer scroll space. */
@media (max-width: 767px) {
  html body footer.wd-footer,
  html body footer.footer-container {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body footer .copyrights-wrapper,
  html body footer .wd-copyrights {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .wd-toolbar.wd-toolbar-label-show {
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0.18s ease !important;
    will-change: transform;
  }

  html body.ep-footer-in-view .wd-toolbar.wd-toolbar-label-show {
    transform: translateY(calc(110% + env(safe-area-inset-bottom, 0px))) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
