
/* Cart Styles */
/* =========================================
   NIMA – CART LAYOUT
========================================= */

.elementor.elementor-494{
  flex: 1;
  min-height: calc(100vh - 60px - 335px);
}

.woocommerce-cart .woocommerce-message a{
  display: none !important;
}

.nima-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .nima-cart {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.nima-cart__items {
  min-width: 0;
}

.nima-cart__summary {
  position: sticky;
  top: 24px;
}

@media (max-width: 1024px) {
  .nima-cart__summary {
    position: static;
  }
}

.nima-cart__items p{
  margin: 0px;
}

.nima-cart a{
  color: #606666;
  text-decoration: none;
}

/* =========================================
   LIST
========================================= */

.nima-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* =========================================
   ITEM CARD
========================================= */

.nima-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0px;
  border-bottom: 2px solid #606666;  
}

.nima-cart-item:first-child {
  border-top: 2px solid #606666;    
  border-bottom: 2px solid #606666; 
}

@media (max-width: 768px) {
  .nima-cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "img info"
      "subtotal subtotal";
    align-items: start;
    gap: 0px 14px;
    padding: 16px 0;
  }
}

/* Remove button (x) */
.nima-cart-item__remove {
  position: absolute;
  top: 12px;
  right: 0px;
  z-index: 2;
}

@media (max-width: 768px) {
  .nima-cart-item__remove {
    top: 22px;
    left: 6px;
    right: auto;
  }
}

.nima-cart-item__remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  color: #606666 !important;
  text-decoration: none;
  line-height: 1;
  font-size: 18px;
  background: #EFEBE6;
  transition: transform .15s ease, opacity .15s ease;
}

.nima-cart-item__remove a.remove:hover {
  transform: scale(1.03);
  opacity: .9;
}

/* Image */
.nima-cart-item__image {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.03);
}

.nima-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .nima-cart-item__image {
    grid-area: img;
    width: 96px;
    height: 96px;
    border-radius: 16px;
  }
}

/* Info */
.nima-cart-item__info {
  min-width: 0;
}

.nima-cart-item__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #606666;
}

.nima-cart-item__title a {
  color: inherit;
  text-decoration: none;
}

.nima-cart-item__title a:hover {
  text-decoration: underline;
}

@media(max-width:767px){
  .nima-cart-item__title {
    font-size: 18px;
    margin-bottom: 8px;
  }
}

/* Meta line: price + qty */
.nima-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .nima-cart-item__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nima-cart-item__meta p, .nima-cart-item__meta span{
    font-size: 14px;
  }
}

.nima-cart-item__price {
  font-size: 18px;
  font-weight: 500;
  color: #606666;
  display: flex;
  flex-direction: column;
  gap:5px;
}

/* Quantity input (Woo markup) */
.nima-cart-item__qty {
  font-size: 18px;
  font-weight: 500;
  color: #606666;
  display: flex;
  flex-direction: column;
  gap:5px;
}

.nima-cart-item__qty input.qty {
  width: 84px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  padding: 0 12px;
  font-size: 15px;
  color: rgba(0,0,0,0.72);
  outline: none;
}

.nima-cart-item__qty input.qty:focus {
  border-color: rgba(0,0,0,0.45);
}

/* Subtotal */
.nima-cart-item__subtotal {
  align-self: center;
  font-size: 18px;
  font-weight: 500;
  color: #606666;
  white-space: nowrap;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}



@media (max-width: 768px) {
  .nima-cart-item__subtotal {
    padding: 0px;
    align-self: start;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

/* =========================================
   ACTIONS (coupon + update)
========================================= */

.nima-cart-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0px;
  padding-top: 18px;  
  justify-content: space-between;
}

.nima-cart-actions .coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nima-cart-actions input#coupon_code {
  height: 44px;
  min-width: 220px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.25);
  background: transparent;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.nima-cart-actions input#coupon_code:focus {
  border-color: rgba(0,0,0,0.45);
}

/* Buttons (update + apply) */
.nima-cart-actions button.button,
.nima-cart-actions .button {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.35);
  background: transparent;
  color: rgba(0,0,0,0.70);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.nima-cart-actions button.button:hover,
.nima-cart-actions .button:hover {
  transform: translateY(-1px);
  opacity: .92;
}

/* =========================================
   SUMMARY (cart_totals) – PANEL
========================================= */

.nima-cart__summary .cart_totals {
  background: #DCD4C5;
  color: #606666;
  border-radius: 28px;
  padding: 26px;
  /* min-height: 550px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .nima-cart__summary .cart_totals {
    min-height: auto;
    padding: 22px;
    border-radius: 25px;
  }
}

.nima-cart__summary .cart_totals h2 {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.05;
  font-weight: 500;
  color: rgba(0,0,0,0.60);
}

/* Totals table reset */
.nima-cart__summary .cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.nima-cart__summary .cart_totals th,
.nima-cart__summary .cart_totals td {
  padding: 10px 0;
  border: 0;
  vertical-align: top;
}

.nima-cart__summary .cart_totals th {
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 18px;
  color: rgba(0,0,0,0.45);
}

.nima-cart__summary .cart_totals td {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: rgba(0,0,0,0.62);
}

.nima-cart__summary .cart_totals tr.order-total th,
.nima-cart__summary .cart_totals tr.order-total td {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.18);
}


.nima-cart__summary .cart_totals tr.order-total td strong {
  font-size: 18px;
  font-weight: 700;
}

/* Shipping methods */
.nima-cart__summary .woocommerce-shipping-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nima-cart__summary .woocommerce-shipping-methods li {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 6px 0;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
}

/* Proceed button (FINALIZAR COMPRA) */
.nima-cart__summary .wc-proceed-to-checkout {
  margin-top: 18px;
  padding: 0px;
}

.nima-cart__summary .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 56px;

  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;

  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0px;

  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.nima-cart__summary .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-1px);
  opacity: .95;
  background: #000000;
}

.nima-cart tr.woocommerce-shipping-totals.shipping {
    display: none;
}


/* =========================================
   MESSAGES / NOTICES (optional)
========================================= */

.woocommerce-notices-wrapper {
  margin-bottom: 18px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 16px;
}


.nima-cart-item__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media(max-width:767px){
  .nima-cart-item__info {
    justify-content: start;
    height: fit-content;
  }



}

.woocommerce table.shop_table, 
.woocommerce table.shop_table td, 
.woocommerce table.shop_table th, 
.woocommerce table.shop_table .order-total,
.woocommerce table.shop_table .order-total td {
  border: none !important;
  background: transparent !important;
}


/* Agregados 22-12 */
body.woocommerce-cart button.cw-qty-btn {
    display: none;
}

body.woocommerce-cart input.qty {
    max-width: 100%;
    width: 100% !important;
}