/* =========================================================
   Metta Pic v41 — Pure Black & White + UI polish
   ========================================================= */

:root {
  --accent: #111 !important;
  --black: #0b0b0b;
  --white: #fff;
  --soft: #f5f5f5;
  --line: #e0e0e0;
  --muted: #707070;
}

/* Kill gold/bronze accent everywhere */
[style*="#c7a56b"],
.btn-light,
.ux-hotspot-item b,
.ux-hotspot-dot i,
.ux-hotspot-item em,
.hero-actions .btn-light {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  box-shadow: none !important;
}
.ux-hotspot-item em { color: #111 !important; background: transparent !important; }
.ux-hotspot-dot i {
  background: #111 !important;
  border-color: rgba(255,255,255,.9) !important;
  box-shadow: 0 0 0 5px rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.2) !important;
}
.hero-actions .btn-light,
.btn-primary,
.mp-cta-primary,
a.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
.hero-actions .btn-light { box-shadow: inset 0 -2px 0 #111, 0 8px 24px rgba(0,0,0,.16) !important; }

/* ---- Cart Android / mobile overflow fix ---- */
@media (max-width: 900px) {
  .mp-cart-page {
    padding: 88px 12px 100px !important;
    overflow-x: hidden !important;
  }
  .mp-cart-page .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }
  .mp-cart-shell {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .mp-cart-items,
  .mp-cart-summary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }
  .mp-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .mp-cart-image {
    width: 72px !important;
    height: 72px !important;
  }
  .mp-cart-item h2,
  .mp-cart-item h2 a {
    font-size: 13px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .mp-cart-summary {
    position: static !important;
  }
  .mp-cart-summary .button.checkout-button {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ---- Product cards polish (home + shop) ---- */
.mp-product-card,
.product-card,
.woocommerce ul.products li.product {
  border: 1px solid #e8e8e8 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.04) !important;
}
.mp-product-card:hover,
.product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  border-color: #111 !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.1) !important;
}
.mp-product-media,
.product-media,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  width: 100% !important;
  background: #f5f5f5 !important;
}
body.mp-home .mp-products .product-media,
body.mp-home .mp-products .mp-product-media {
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
}

/* ---- Category tiles / banners home ---- */
body.mp-home .category-tile {
  border-radius: 20px !important;
  border: 1px solid #e5e5e5 !important;
  min-height: 200px !important;
  padding: 28px !important;
  background: #fff !important;
  transition: transform .3s ease, box-shadow .3s ease !important;
}
body.mp-home .category-tile:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.1) !important;
  border-color: #111 !important;
}
body.mp-home .category-tile.category-dark {
  background: #0b0b0b !important;
  color: #fff !important;
  border-color: #0b0b0b !important;
}
body.mp-home .category-grid {
  gap: 18px !important;
}

/* ---- CTA section improve ---- */
body.mp-home .mp-final-cta {
  background: #0b0b0b !important;
  color: #fff !important;
  padding: 80px 0 !important;
  text-align: center !important;
}
body.mp-home .mp-final-cta h2,
body.mp-home .mp-final-cta p {
  color: #fff !important;
}
body.mp-home .mp-final-cta a,
body.mp-home .mp-final-cta .button {
  background: #fff !important;
  color: #111 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
}

/* ---- Category archive banners ---- */
.mp-cat-banner-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
}
.mp-cat-banner-card {
  display: block !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  background: #f0f0f0 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.06) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.mp-cat-banner-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.12) !important;
}
.mp-cat-banner-card img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}
@media (max-width: 640px) {
  .mp-cat-banner-grid { grid-template-columns: 1fr !important; }
}

/* ---- Checkout accordion (last step) ---- */
.mp-ck-accordion {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
}
.mp-ck-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #fafafa;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  text-align: right;
}
.mp-ck-accordion-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.mp-ck-accordion.is-open .mp-ck-accordion-btn svg {
  transform: rotate(180deg);
}
.mp-ck-accordion-body {
  display: none;
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
}
.mp-ck-accordion.is-open .mp-ck-accordion-body {
  display: block;
}
.mp-ck-accordion .mp-ck-coupon-row {
  display: flex;
  gap: 8px;
}
.mp-ck-accordion .mp-ck-coupon-row input {
  flex: 1;
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 12px;
}
.mp-ck-accordion .mp-ck-coupon-btn {
  min-height: 44px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
}
.mp-ck-accordion textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}

/* Progress 4 steps */
.mp-ck-prog-bar i { transition: width .3s ease; }

/* Home CTA polish */
body.mp-home .mp-home-cta {
  background: #f7f7f7 !important;
  padding: 64px 0 !important;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
body.mp-home .mp-home-cta .cta-inner {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body.mp-home .mp-home-cta h2 {
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  color: #111 !important;
}
body.mp-home .mp-home-cta p {
  margin: 0 !important;
  color: #555 !important;
  max-width: 42ch;
}
body.mp-home .mp-home-cta .btn {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
body.mp-home .mp-final-box {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body.mp-home .mp-final-box h2 {
  font-size: clamp(22px, 2.8vw, 32px) !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
}
body.mp-home .mp-final-box p {
  margin: 0 !important;
  opacity: .75;
  max-width: 40ch;
}
body.mp-home .mp-final-box .btn {
  background: #fff !important;
  color: #111 !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
}

/* Category page banner already present — polish */
.mp-cat-page-banner {
  margin-bottom: 24px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.mp-cat-page-banner img {
  max-height: 380px !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* =========================================================
   Checkout complete fix — 4 steps + payment + mobile invoice
   ========================================================= */

/* Desktop: show steps 1-3 in grid, hide step 4 shell (accordions live in sidebar) */
@media (min-width: 861px) {
  .mp-ck-steps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 16px !important;
  }
  .mp-ck-step {
    display: block !important;
    margin: 0 !important;
  }
  .mp-ck-step[data-step="3"] {
    grid-column: 1 / -1 !important;
  }
  .mp-ck-step[data-step="4"],
  .mp-ck-step-final {
    display: none !important;
  }
  .mp-ck-mobile-invoice {
    display: none !important;
  }
  .mp-ck-side {
    display: block !important;
  }
  .mp-ck-desktop-accords {
    display: block !important;
    margin-top: 12px;
  }
}

/* Mobile: one step at a time */
@media (max-width: 860px) {
  .mp-ck-steps {
    display: block !important;
  }
  .mp-ck-step {
    display: none !important;
  }
  .mp-ck-step.is-active {
    display: block !important;
  }
  .mp-ck-step-final.is-active {
    display: block !important;
  }

  /* Hide sidebar products/totals on mobile until final — payment stays */
  .mp-ck-side {
    display: none !important;
  }
  body.mp-ck-on-final .mp-ck-side {
    display: block !important;
  }
  /* On final: hide duplicate desk products in side (mobile invoice already shows them) */
  body.mp-ck-on-final .mp-ck-desk-products,
  body.mp-ck-on-final .mp-ck-desk-totals {
    display: none !important;
  }
  body.mp-ck-on-final .mp-ck-desktop-accords {
    display: none !important;
  }

  /* Mobile invoice inside step 4 */
  .mp-ck-mobile-invoice {
    margin-bottom: 16px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
  }
  .mp-ck-mobile-invoice .mp-ck-prod-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
  }
  .mp-ck-mobile-invoice .mp-ck-prod-row:last-child {
    border-bottom: 0;
  }
  .mp-ck-mobile-invoice .mp-ck-totals {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
  }
  .mp-ck-mobile-invoice .mp-ck-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
  }
  .mp-ck-mobile-invoice .mp-ck-grand {
    font-weight: 800;
    font-size: 15px;
    margin-top: 6px;
  }

  /* Payment block always visible when side is shown */
  body.mp-ck-on-final #payment,
  body.mp-ck-on-final .woocommerce-checkout-payment {
    display: block !important;
    margin-top: 16px !important;
  }
  body.mp-ck-on-final #place_order {
    width: 100% !important;
    min-height: 52px !important;
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
  }
}

/* Accordion polish */
.mp-ck-accordion {
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  margin-top: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}
.mp-ck-accordion-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  background: #fafafa !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #111 !important;
  cursor: pointer !important;
  text-align: right !important;
  font-family: inherit !important;
}
.mp-ck-accordion-btn svg {
  width: 16px !important;
  height: 16px !important;
  transition: transform .2s ease !important;
  flex-shrink: 0 !important;
}
.mp-ck-accordion.is-open .mp-ck-accordion-btn svg {
  transform: rotate(180deg) !important;
}
.mp-ck-accordion-body {
  display: none !important;
  padding: 12px 16px 16px !important;
  border-top: 1px solid #eee !important;
}
.mp-ck-accordion.is-open .mp-ck-accordion-body {
  display: block !important;
}
.mp-ck-accordion .mp-ck-coupon-row {
  display: flex !important;
  gap: 8px !important;
}
.mp-ck-accordion .mp-ck-coupon-row input {
  flex: 1 !important;
  min-height: 44px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  background: #fff !important;
}
.mp-ck-accordion .mp-ck-coupon-btn {
  min-height: 44px !important;
  padding: 0 16px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.mp-ck-accordion textarea {
  width: 100% !important;
  min-height: 72px !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  background: #fff !important;
}
.mp-ck-coupon-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #333;
}

/* Hide WC default coupon / notices that conflict */
.woocommerce-form-coupon-toggle,
form.checkout_coupon,
.woocommerce-info:has(+ .checkout_coupon) {
  display: none !important;
}

/* Ensure order review table inside payment is hidden (we render products) */
.mp-ck-invoice .shop_table,
.mp-ck-invoice #order_review > table {
  display: none !important;
}
.mp-ck-invoice #order_review {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.mp-ck-invoice #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 12px 0 0 !important;
  margin: 0 !important;
}
.mp-ck-invoice #place_order {
  width: 100% !important;
  min-height: 52px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin-top: 12px !important;
}
.mp-ck-invoice .payment_methods {
  list-style: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.mp-ck-invoice .payment_methods li {
  padding: 10px 12px !important;
  border: 1px solid #eee !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  background: #fafafa !important;
}

/* Progress bar always B&W */
.mp-ck-prog-bar i {
  background: #111 !important;
}
