/*
 Theme Name:   Divi Child
 Template:     Divi
*/

/* --- Custom CSS --- */

/* Add vertical spacing above unordered and ordered lists */
.et_pb_text ul,
.et_pb_text ol {
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 1.5em;
  padding-left: 1.5em;
  list-style-position: outside;
}

.et_pb_text ul li,
.et_pb_text ol li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

/* 🔹 Fix WooCommerce + Divi conflicts for quantity buttons */
.quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 4px 10px; /* top/bottom padding added */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* input area */
.quantity input.qty {
  width: 64px !important;
  height: 48px !important;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  outline: none;
  box-shadow: none;
}

/* plus/minus buttons — override Divi’s opacity rules */
.quantity .qty-button {
  width: 46px !important;
  height: 46px !important;
  background-color: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease-in-out !important;
}

/* hover + active */
.quantity .qty-button:hover {
  background-color: #e02b20 !important;
  transform: translateY(-1px);
}

.quantity .qty-button:active {
  transform: scale(0.94);
}

/* spacing between buttons and input */
.quantity .minus { margin-right: 6px; }
.quantity .plus { margin-left: 6px; }

/* === Final visual polish for WooCommerce quantity buttons === */
.woocommerce div.product .quantity {
  background: #f9f9f9 !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important; /* adds spacing between minus, input, plus */
}

.woocommerce div.product .quantity button.qty-button {
  background-color: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important; /* less pill-like, more subtle */
  width: 42px !important;
  height: 42px !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease-in-out !important;
}

.woocommerce div.product .quantity button.qty-button:hover {
  background-color: #e02b20 !important;
  transform: translateY(-1px);
}

.woocommerce div.product .quantity input.qty {
  width: 60px !important;
  height: 42px !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #111 !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
