/* HEADER LAYOUT */
.cart-modal-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* IMAGE */
.cart-modal-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

/* TITLE + PRICE */
.cart-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-modal-meta h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.cart-modal-price {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

/* SEPARATOR */
.cart-modal-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 6px 0 4px;
}


/* OVERLAY */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}

.cart-modal.active {
  opacity: 1;
  pointer-events: all;
}

/* MODAL BOX */
.cart-modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalPop .25s ease;
}

.cart-modal-content textarea {
    width: 94%;
    min-height: 80px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cart-modal-content textarea:focus {
    border-color: #d4af37;      /* dorado */
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}


@keyframes modalPop {
  from {
    transform: scale(.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* CLOSE */
.cart-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
/* TITLE & PRICE */
.cart-modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* OPTIONS */
#modalOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modalOptions label {
  font-size: 13px;
  font-weight: 500;
}

.modal-option {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
}

/* QTY (reusa tu estilo) */
.cart-modal .pd-qty-wrapper {
  align-self: center;
}

.pd-buynow {
    position: relative;
    overflow: hidden;
    display: block;
    flex: 1;
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #D4AF37, #f9e076);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    font-weight: bold;
    border-radius: 18px;
    cursor: pointer;
    box-sizing: border-box;
}

.pd-buynow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: transform 0.6s ease;
}

.pd-buynow:hover::after {
    transform: translateX(240%);
}

.pd-buynow:hover {
    transform: scale(1.02);
}
/* ======================
   QTY INPUT INTEGRADO
====================== */
.pd-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 18px;
    overflow: hidden;
    height: 42px;
}

/* botones - + */
.pd-qty-wrapper button {
    width: 44px;
    height: 100%;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    transition: background 0.2s ease;
}

.pd-qty-wrapper button:hover {
    background: rgba(0,0,0,0.05);
}

/* input */
.pd-qty-wrapper input {
    width: 50px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

/* quitar flechas */
.pd-qty-wrapper input::-webkit-inner-spin-button,
.pd-qty-wrapper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

