/* ============================================================
   ECHO STERLING — WOOCOMMERCE STYLES
   ============================================================ */

/* General WooCommerce overrides */
.woocommerce-page .es-main,
.woocommerce .es-main {
  background: var(--es-dark);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-top: 3px solid var(--es-red);
  border-radius: var(--es-radius);
  color: var(--es-grey-light);
  padding: var(--es-space-4) var(--es-space-6);
  margin-bottom: var(--es-space-6);
  list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--es-red);
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--es-red);
  color: var(--es-white);
  font-family: var(--es-font-heading);
  font-size: var(--es-text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--es-space-3) var(--es-space-6);
  border-radius: var(--es-radius-sm);
  border: none;
  transition: background var(--es-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--es-red-bright);
  color: var(--es-white);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--es-red);
}

/* Cart */
.woocommerce-cart table.cart {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius-lg);
  overflow: hidden;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  border-color: var(--es-charcoal);
  color: var(--es-grey-light);
  padding: var(--es-space-4);
}

.woocommerce-cart table.cart th {
  background: var(--es-dark-3);
  font-family: var(--es-font-heading);
  font-size: var(--es-text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--es-grey-mid);
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius-lg);
  padding: var(--es-space-6);
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--es-font-heading);
  font-size: var(--es-text-xl);
  margin-bottom: var(--es-space-5);
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  border-color: var(--es-charcoal);
  color: var(--es-grey-light);
  padding: var(--es-space-3) 0;
}

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
  font-family: var(--es-font-heading);
  font-size: var(--es-text-xl);
  margin-bottom: var(--es-space-5);
  color: var(--es-white);
}

.woocommerce form .form-row label {
  font-family: var(--es-font-heading);
  font-size: var(--es-text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-grey-mid);
  margin-bottom: var(--es-space-2);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius);
  color: var(--es-white);
  padding: var(--es-space-3) var(--es-space-4);
  width: 100%;
  outline: none;
  transition: border-color var(--es-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--es-red);
}

/* Order Review */
.woocommerce-checkout #payment {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius-lg);
  padding: var(--es-space-6);
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--es-charcoal);
  padding-bottom: var(--es-space-5);
  margin-bottom: var(--es-space-5);
}

.woocommerce-checkout #payment ul.payment_methods li label {
  color: var(--es-grey-light);
}

/* Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius-lg);
  padding: var(--es-space-5);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: var(--es-space-3) var(--es-space-4);
  font-family: var(--es-font-heading);
  font-size: var(--es-text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-grey);
  border-radius: var(--es-radius-sm);
  transition: all var(--es-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--es-red);
  color: var(--es-white);
}

/* Single Product */
.woocommerce div.product .product_title {
  font-family: var(--es-font-display);
  font-size: var(--es-text-5xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--es-white);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--es-font-display);
  font-size: var(--es-text-4xl);
  color: var(--es-red);
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--es-grey-light);
  font-size: var(--es-text-lg);
  line-height: 1.7;
}

/* Downloads */
.woocommerce-account .woocommerce-MyAccount-downloads table {
  background: var(--es-dark-2);
  border: 1px solid var(--es-charcoal);
  border-radius: var(--es-radius-lg);
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-downloads table th {
  background: var(--es-dark-3);
  font-family: var(--es-font-heading);
  font-size: var(--es-text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--es-grey-mid);
  padding: var(--es-space-4);
  border-color: var(--es-charcoal);
}

.woocommerce-account .woocommerce-MyAccount-downloads table td {
  padding: var(--es-space-4);
  border-color: var(--es-charcoal);
  color: var(--es-grey-light);
}
