/* ==========================================================================
   AURA LUXIFY — Cart / Checkout / My Account / Wishlist
   Sage/forest-green design system, matching the Shop page.
   Scoped ONLY to these pages' own body classes — homepage untouched.
   ========================================================================== */

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account,
body.wlfmc-wishlist{
  --al-bg:#DFECE5;
  --al-surface:#FFFFFF;
  --al-dark:#2C3A32;
  --al-dark-hover:#3A4B41;
  --al-border:#CFE0D6;
  --al-text-muted:#1B211D;
  --al-radius:20px;
  --al-radius-sm:14px;
  --al-shadow: 0 8px 24px -8px rgba(44,58,50,.16);
  --al-font-heading:'Nunito', sans-serif;
  --al-font-body:'Nunito', sans-serif;

  background:var(--al-bg) !important;
}
body.woocommerce-cart #primary,
body.woocommerce-cart .content-area,
body.woocommerce-checkout #primary,
body.woocommerce-checkout .content-area,
body.woocommerce-account #primary,
body.woocommerce-account .content-area,
body.wlfmc-wishlist #primary,
body.wlfmc-wishlist .content-area{
  background:var(--al-bg) !important;
}

/* Shared page heading */
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-account h1.entry-title,
body.wlfmc-wishlist h1.entry-title,
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-account .page-title{
  font-family:var(--al-font-heading);
  font-weight:800;
  color:var(--al-dark);
}

/* ==========================================================================
   SHARED BUTTON TREATMENT — one consistent look/size everywhere.
   Covers: WC Blocks (Cart/Checkout), classic WooCommerce buttons
   (My Account forms, fallback templates), and the wishlist plugin's
   own action buttons.
   ========================================================================== */
body.woocommerce-cart .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-button,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a,
body.woocommerce-cart .button,
body.woocommerce-checkout .button,
body.woocommerce-checkout #place_order,
body.woocommerce-account .button,
body.woocommerce-account .woocommerce-Button,
body.wlfmc-wishlist .wlfmc-custom-btn,
body.wlfmc-wishlist .button,
body.wlfmc-wishlist .add_to_cart_button{
  font-family:var(--al-font-body) !important;
  font-weight:700 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  padding:12px 28px !important;
  border-radius:999px !important;
  background:var(--al-dark) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
  transition:background-color .25s ease !important;
}
body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-checkout .wc-block-components-button:hover,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a:hover,
body.woocommerce-cart .button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-account .button:hover,
body.woocommerce-account .woocommerce-Button:hover,
body.wlfmc-wishlist .wlfmc-custom-btn:hover,
body.wlfmc-wishlist .button:hover,
body.wlfmc-wishlist .add_to_cart_button:hover{
  background:var(--al-dark-hover) !important;
  color:#fff !important;
}
/* Secondary / outline-style actions (e.g. "Continue shopping", remove links) */
body.woocommerce-cart .wc-block-components-button.wp-element-button.is-link,
body.woocommerce-checkout .wc-block-components-button.is-link,
body.woocommerce-account .woocommerce-MyAccount-content .button.wp-element-button.alt{
  background:transparent !important;
  color:var(--al-dark) !important;
  text-decoration:underline;
}

/* ==========================================================================
   CART & CHECKOUT (WooCommerce Blocks)
   ========================================================================== */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout{
  font-family:var(--al-font-body);
}
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-components-panel,
body.woocommerce-cart .wc-block-components-order-summary,
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-checkout .wc-block-components-panel,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-checkout-step{
  background:var(--al-surface);
  border-radius:var(--al-radius);
  border:1px solid var(--al-border);
}
body.woocommerce-cart .wc-block-cart-items{
  padding:20px 24px;
  box-shadow:var(--al-shadow);
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout{
  margin-top:32px;
  margin-bottom:56px;
}
body.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-components-order-summary-item{
  padding:20px 4px !important;
}
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-product-metadata{
  display:none !important;
}
body.woocommerce-cart .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-components-order-summary{
  padding:20px;
  box-shadow:var(--al-shadow);
}
body.woocommerce-checkout .wc-block-components-checkout-step{
  padding:20px 24px;
  margin-bottom:20px;
  box-shadow:var(--al-shadow);
}
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-name{
  font-family:var(--al-font-heading);
  font-weight:700;
  color:var(--al-dark);
}
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-formatted-money-amount,
body.woocommerce-checkout .wc-block-components-formatted-money-amount{
  color:var(--al-dark);
  font-weight:700;
}
body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-checkout .wc-block-components-quantity-selector{
  border-radius:12px;
  border-color:var(--al-border);
}
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-text-input textarea,
body.woocommerce-checkout .wc-block-components-text-input textarea,
body.woocommerce-cart input[type=text],
body.woocommerce-checkout input[type=text],
body.woocommerce-checkout input[type=email],
body.woocommerce-checkout input[type=tel],
body.woocommerce-checkout select{
  border-radius:10px !important;
  border-color:var(--al-border) !important;
}
body.woocommerce-cart .wc-block-components-text-input.is-active label,
body.woocommerce-checkout .wc-block-components-text-input.is-active label{
  color:var(--al-dark);
}
body.woocommerce-checkout .wc-block-components-radio-control__option.wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option-checked{
  border-color:var(--al-dark) !important;
}

/* ==========================================================================
   MY ACCOUNT (classic WooCommerce markup)
   ========================================================================== */
body.woocommerce-account .woocommerce{
  display:flex;
  gap:28px;
  align-items:flex-start;
  flex-wrap:wrap;
}
body.woocommerce-account .woocommerce-MyAccount-navigation{
  background:var(--al-surface);
  border:1px solid var(--al-border);
  border-radius:var(--al-radius);
  box-shadow:var(--al-shadow);
  padding:16px;
  flex:0 0 240px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; }
body.woocommerce-account .woocommerce-MyAccount-navigation-link a{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:10px;
  color:var(--al-text-muted);
  text-decoration:none;
  font-family:var(--al-font-body);
  font-weight:600;
  font-size:14px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover{
  background:var(--al-bg);
  color:var(--al-dark);
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a{
  background:var(--al-dark);
  color:#fff;
}
body.woocommerce-account .woocommerce-MyAccount-content{
  flex:1 1 480px;
  background:var(--al-surface);
  border:1px solid var(--al-border);
  border-radius:var(--al-radius);
  box-shadow:var(--al-shadow);
  padding:28px;
}
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3{
  font-family:var(--al-font-heading);
  color:var(--al-dark);
}
body.woocommerce-account .woocommerce-MyAccount-content input[type=text],
body.woocommerce-account .woocommerce-MyAccount-content input[type=email],
body.woocommerce-account .woocommerce-MyAccount-content input[type=password],
body.woocommerce-account .woocommerce-MyAccount-content input[type=tel],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea{
  border-radius:10px;
  border-color:var(--al-border);
  font-family:var(--al-font-body);
}

/* ==========================================================================
   TABLES — orders history, cart fallback, wishlist table
   ========================================================================== */
body.woocommerce-cart table.shop_table,
body.woocommerce-account table.shop_table,
body.wlfmc-wishlist .wlfmc-default-table{
  background:var(--al-surface);
  border:1px solid var(--al-border);
  border-radius:var(--al-radius-sm);
  overflow:hidden;
  font-family:var(--al-font-body);
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-account table.shop_table th,
body.wlfmc-wishlist .wlfmc-default-table-header{
  background:var(--al-bg) !important;
  color:var(--al-dark) !important;
  font-family:var(--al-font-heading);
  font-weight:700;
}
body.woocommerce-cart table.shop_table td,
body.woocommerce-account table.shop_table td{
  border-color:var(--al-border) !important;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.wlfmc-wishlist .wlfmc-default-table th,
body.wlfmc-wishlist .wlfmc-default-table td{
  padding:14px 16px !important;
}

/* ==========================================================================
   WISHLIST (Smart Wishlist for More Convert)
   ========================================================================== */
body.wlfmc-wishlist .wlfmc-wishlist-form{
  font-family:var(--al-font-body);
}
body.wlfmc-wishlist h1,
body.wlfmc-wishlist h2{
  font-family:var(--al-font-heading);
  color:var(--al-dark);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1024px){
  body.woocommerce-checkout .wc-block-components-checkout-step{
    padding:18px 20px;
  }
  body.woocommerce-cart .wc-block-cart-items,
  body.woocommerce-cart .wc-block-components-order-summary,
  body.woocommerce-checkout .wc-block-components-order-summary{
    padding:16px 18px;
  }
  body.woocommerce-account .woocommerce-MyAccount-content{
    padding:22px;
  }
}

@media (max-width:768px){
  /* My Account: stack the nav above the content instead of side-by-side */
  body.woocommerce-account .woocommerce{
    flex-direction:column;
    gap:20px;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation{
    flex:1 1 100%;
    width:100%;
  }
  body.woocommerce-account .woocommerce-MyAccount-content{
    flex:1 1 100%;
    width:100%;
  }
}

@media (max-width:640px){
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-checkout .wp-block-woocommerce-checkout{
    margin-top:20px;
    margin-bottom:40px;
  }
  body.woocommerce-cart .wc-block-cart-items,
  body.woocommerce-cart .wc-block-components-order-summary,
  body.woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .wc-block-components-checkout-step{
    padding:14px 16px;
  }
  body.woocommerce-account .woocommerce-MyAccount-content{
    padding:18px;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation{
    padding:12px;
  }
}
