/* Custom Footer Background CSS - Override File */
footer#rishi-footer,
footer.rishi-footer,
#rishi-footer,
.rishi-footer {
  background-image: url('https://adivasitrove.com/wp-content/uploads/2025/11/20.jpg') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  min-height: 500px !important;
  padding: 60px 0 !important;
}

/* Dark overlay removed to show background image clearly */

footer#rishi-footer > *,
footer.rishi-footer > *,
#rishi-footer > *,
.rishi-footer > * {
  position: relative !important;
  z-index: 2 !important;
  background: none !important;
  background-color: transparent !important;
}

footer#rishi-footer .row-wrapper,
footer.rishi-footer .row-wrapper,
#rishi-footer .row-wrapper,
.rishi-footer .row-wrapper,
footer#rishi-footer .col-wrapper,
footer.rishi-footer .col-wrapper,
#rishi-footer .col-wrapper,
.rishi-footer .col-wrapper {
  background: none !important;
  background-color: transparent !important;
}

/* Fix cart popup text color being white on white background */
#rishi-cart .rishi-cart-content {
  --linkInitialColor: var(--linkHoverColor) !important;
}

#rishi-cart .rishi-cart-content .woocommerce-mini-cart__empty-message,
#rishi-cart .rishi-cart-content .product-title:not(:hover),
#rishi-cart .rishi-cart-content .quantity,
#rishi-cart .rishi-cart-content .total,
#rishi-cart .rishi-cart-content .total strong,
#rishi-cart .rishi-cart-content .total .amount {
  color: var(--linkHoverColor) !important;
}

/* Fix quick view popup being behind the header bar */
.eael-product-popup.eael-product-popup-ready {
  z-index: 9999999 !important;
}

/* Custom WooCommerce Cart Redesign Styles (Full Width Layout) */
.woocommerce-cart .woocommerce {
  display: block !important;
}

.woocommerce-cart .woocommerce-cart-form {
  width: 100% !important;
  display: block !important;
}

/* Force Elementor columns on cart page to take 100% width so blocks match product table width */
.woocommerce-cart .elementor-column,
.woocommerce-cart .elementor-container,
.woocommerce-cart .elementor-row,
.woocommerce-cart .elementor-widget-container,
.woocommerce-cart .elementor-element {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Table styling */
.woocommerce-cart table.shop_table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0 12px;
  border: none !important;
  background: transparent !important;
}

.woocommerce-cart table.shop_table thead {
  background: #f7f9f4;
}

.woocommerce-cart table.shop_table thead th {
  border: none !important;
  padding: 15px 20px !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  color: #333333;
}

.woocommerce-cart table.shop_table tbody tr.cart_item {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart table.shop_table tbody tr.cart_item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.woocommerce-cart table.shop_table tbody td {
  border: none !important;
  padding: 20px !important;
  vertical-align: middle;
}

/* Thumbnail */
.woocommerce-cart table.shop_table td.product-thumbnail img {
  border-radius: 6px;
  max-width: 80px !important;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Inputs & Buttons */
.woocommerce-cart input.input-text {
  border: 1px solid #e2e8f0 !important;
  padding: 10px 15px !important;
  border-radius: 4px !important;
  outline: none;
}

.woocommerce-cart input.input-text:focus {
  border-color: #fab73a !important;
}

.woocommerce-cart .actions {
  background: #ffffff !important;
  border-radius: 8px;
  padding: 25px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: table-cell !important;
  width: 100% !important;
}

.woocommerce-cart .actions button[name="update_cart"] {
  float: right !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

.woocommerce-cart .coupon {
  clear: both !important;
  float: left !important;
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 20px !important;
}

.woocommerce-cart .coupon input.input-text {
  height: 42px !important;
  box-sizing: border-box;
  max-width: 300px !important;
  flex: 1 !important;
}

.woocommerce-cart .coupon button.button {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}

.woocommerce-cart button.button {
  background-color: #fab73a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  border: none !important;
  transition: background 0.3s ease !important;
  cursor: pointer;
}

.woocommerce-cart button.button:hover {
  background-color: #e09e25 !important;
}

.woocommerce-cart button.button:disabled,
.woocommerce-cart button.button[disabled] {
  background-color: #cccccc !important;
  color: #888888 !important;
  cursor: not-allowed;
}

/* Cart Totals styling (Match Table Width) */
.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  margin-top: 30px !important;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f5;
  box-sizing: border-box;
  clear: both !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
}

.woocommerce-cart .cart-collaterals h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #fab73a;
  padding-bottom: 10px;
}

.woocommerce-cart .cart-collaterals table.shop_table {
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr th,
.woocommerce-cart .cart-collaterals table.shop_table tr td {
  padding: 0 !important;
  border: none !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr th {
  flex: 0 0 140px !important;
  max-width: 140px !important;
  text-align: left !important;
  font-weight: 600;
  color: #333333;
}

.woocommerce-cart .cart-collaterals table.shop_table tr.shipping {
  display: block !important;
  padding: 12px 0 !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr.shipping th {
  display: none !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tr.shipping td {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

.woocommerce-cart .cart-collaterals ul#shipping_method {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals ul#shipping_method li label {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  font-weight: 600 !important;
  color: #333333 !important;
}

.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #4a5568 !important;
  margin: 10px 0 0 0 !important;
  text-align: right !important;
}

.woocommerce-cart .cart-collaterals .woocommerce-shipping-destination strong {
  font-weight: 500 !important;
  color: #333333 !important;
  max-width: 70% !important;
  text-align: right !important;
}

.woocommerce-cart .cart-collaterals .shipping td {
  padding: 0 !important;
}

.woocommerce-cart .cart-collaterals select.shipping_method,
.woocommerce-cart .cart-collaterals .shipping-calculator-form input,
.woocommerce-cart .cart-collaterals .shipping-calculator-form select {
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.woocommerce-cart .checkout-button {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  padding: 15px 30px !important;
}

/* Mobile responsive styles */
@media (max-width: 767px) {
  .woocommerce-cart table.shop_table thead {
    display: none;
  }
  .woocommerce-cart table.shop_table tbody tr.cart_item {
    display: block;
    margin-bottom: 20px;
    padding: 15px;
    position: relative;
    border: 1px solid #eef2f5;
  }
  .woocommerce-cart table.shop_table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border-bottom: 1px dashed #eef2f5 !important;
    text-align: right;
  }
  .woocommerce-cart table.shop_table tbody tr td:last-child {
    border-bottom: none !important;
  }
  .woocommerce-cart table.shop_table tbody tr td::before {
    content: attr(data-title);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    float: left;
    color: #4a5568;
  }
  .woocommerce-cart table.shop_table td.product-remove {
    position: absolute;
    top: 5px;
    right: 15px;
    border-bottom: none !important;
    padding: 0 !important;
    z-index: 10;
  }
  .woocommerce-cart table.shop_table td.product-remove a {
    font-size: 24px;
    color: #e53e3e !important;
  }
  .woocommerce-cart table.shop_table td.product-thumbnail {
    display: block;
    text-align: center;
    border-bottom: none !important;
  }
  .woocommerce-cart table.shop_table td.product-thumbnail img {
    margin: 0 auto;
  }
  .woocommerce-cart table.shop_table td.product-name {
    display: block;
    text-align: center;
  }
  .woocommerce-cart table.shop_table td.product-name::before {
    display: none;
  }
  .woocommerce-cart table.shop_table td.product-name a {
    display: block;
    font-weight: bold;
    font-size: 15px;
  }
  .woocommerce-cart .actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }
  .woocommerce-cart .actions button[name="update_cart"] {
    width: 100% !important;
    order: 1;
  }
  .woocommerce-cart .coupon {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    order: 2;
    margin-top: 0 !important;
  }
  .woocommerce-cart .coupon input.input-text {
    width: 100% !important;
  }
  .woocommerce-cart .coupon button.button {
    width: 100% !important;
  }
}

/* Remove sidebar and make content full-width on Blog index, archive, and detail pages */

.blog #secondary,
.category #secondary,
.tag #secondary,
.date #secondary,
.author #secondary,
.single-post #secondary {
  display: none !important;
}

.blog .site-main,
.category .site-main,
.tag .site-main,
.date .site-main,
.author .site-main,
.single-post .site-main {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}



