/* OZ Cotizador — Design pack "compra-rapida" (admin: Compra Rápida)
 * Tarjeta de catálogo enfocada en conversión:
 *   - Nombre del producto
 *   - Botón "Agregar Carrito" (con ícono de carrito) -> .ozc-product-card__btn--primary
 *   - Botón de WhatsApp SOLO ícono -> .ozc-product-card__wa-btn
 * Todo el CSS va scopeado bajo .ozc-product-card--pack-compra-rapida
 */

.ozc-product-card--pack-compra-rapida {
  --ozc-pack-accent: #004674;          /* azul marca */
  --ozc-pack-cart: #b7eb69;            /* verde claro (Agregar Carrito) */
  --ozc-pack-cart-hover: #040664;      /* azul oscuro en hover */
  --ozc-pack-cart-text: #0f172a;       /* texto en estado normal */
  --ozc-pack-cart-text-hover: #ffffff; /* texto en hover */
  --ozc-pack-wa: #25d366;              /* verde WhatsApp */
  --ozc-pack-wa-hover: #1ebe5d;
  --ozc-pack-surface: #ffffff;
  --ozc-pack-border: #e5e7eb;
  --ozc-pack-text: #0f172a;
  --ozc-pack-muted: #6b7280;
  --ozc-pack-radius: 14px;
  --ozc-pack-btn-radius: 10px;

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--ozc-pack-surface);
  border: 1px solid var(--ozc-pack-border);
  border-radius: var(--ozc-pack-radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 1rem 1rem 1.1rem;
  text-align: center;
  color: var(--ozc-pack-text);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.ozc-product-card--pack-compra-rapida:hover,
.ozc-product-card--pack-compra-rapida:focus-within {
  border-color: #d8e1ea;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__section {
  padding-left: 0;
  padding-right: 0;
  margin-top: 0.5rem;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__section:first-child {
  margin-top: 0;
}

/* ---------- Imagen ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__media img,
.ozc-product-card--pack-compra-rapida .ozc-product-card__placeholder {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
  display: block;
  transition: transform 0.28s ease;
}

.ozc-product-card--pack-compra-rapida:hover .ozc-product-card__media img {
  transform: scale(1.03);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__placeholder {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(145deg, #f6f6f6 0%, #ececec 100%);
}

/* Marca como badge sobre la imagen: oculta (diseño limpio) */
.ozc-product-card--pack-compra-rapida .ozc-product-card__media .ozc-product-card__badge {
  display: none;
}

/* ---------- Categoría / marca (discretas) ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__category {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ozc-pack-accent);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__brand {
  font-size: 0.78rem;
  color: var(--ozc-pack-muted);
}

/* ---------- Nombre del producto ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
  color: var(--ozc-pack-text);
  overflow: hidden;
  word-break: break-word;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__title a:hover,
.ozc-product-card--pack-compra-rapida .ozc-product-card__title a:focus-visible {
  color: var(--ozc-pack-accent);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ozc-pack-muted);
}

/* ---------- Precio ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ozc-pack-text);
}

/* Empuja los botones al fondo para que todas las cards queden alineadas */
.ozc-product-card--pack-compra-rapida .ozc-product-card__actions {
  margin-top: auto;
}

/* ---------- Fila de acciones: [cantidad] + Agregar Carrito ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.6rem;
}

/* El selector de cantidad (.ozc-product-card__qty) se eliminó de este pack:
 * no se renderiza en la plantilla y su lugar lo ocupa el botón de WhatsApp. */

/* Botón principal: "Agregar Carrito" con ícono de carrito.
 * La etiqueta de texto se fuerza por CSS (font-size:0 oculta el texto del plugin,
 * el ::after escribe "Agregar Carrito") para garantizar el diseño solicitado. */
.ozc-product-card--pack-compra-rapida .ozc-product-card__btn--primary {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: var(--ozc-pack-btn-radius);
  background: var(--ozc-pack-cart);
  color: var(--ozc-pack-cart-text);
  font-size: 0.86rem;           /* muestra el título real del botón */
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;             /* botón simple, sin sombra */
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ícono de carrito */
.ozc-product-card--pack-compra-rapida .ozc-product-card__btn--primary::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0 0 20 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sin ::after: se muestra el título real del botón ("Agregar a cotización").
 * Neutralizamos cualquier ::after decorativo heredado del tema/Woo. */
.ozc-product-card--pack-compra-rapida .ozc-product-card__btn--primary::after {
  content: none;
  display: none;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__btn--primary:hover {
  background: var(--ozc-pack-cart-hover);
  color: var(--ozc-pack-cart-text-hover);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__btn--primary:focus-visible {
  outline: 2px solid var(--ozc-pack-cart-hover);
  outline-offset: 2px;
}

/* Enlace "Ver carrito" que WooCommerce añade tras agregar (AJAX) */
.ozc-product-card--pack-compra-rapida .ozc-product-card__actions .added_to_cart {
  order: 3;
  flex: 1 1 100%;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ozc-pack-accent);
  text-decoration: none;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__actions .added_to_cart:hover {
  text-decoration: underline;
}

/* ---------- Botón de WhatsApp: SOLO ícono, dentro de la fila de acciones (reemplaza al QTY) ---------- */
.ozc-product-card--pack-compra-rapida .ozc-product-card__wa {
  order: 1;            /* va a la izquierda, donde estaba el selector de cantidad */
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__wa-btn {
  width: 2.6rem;        /* botón cuadrado, solo ícono */
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--ozc-pack-btn-radius);
  background: var(--ozc-pack-wa);
  color: #ffffff;
  font-size: 0;                 /* oculta el texto: solo queda el ícono */
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.22);
  transition: background-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

/* Ícono de WhatsApp centrado */
.ozc-product-card--pack-compra-rapida .ozc-product-card__wa-btn::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__wa-btn:hover,
.ozc-product-card--pack-compra-rapida .ozc-product-card__wa-btn:focus-visible {
  background: var(--ozc-pack-wa-hover);
  box-shadow: 0 12px 22px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.ozc-product-card--pack-compra-rapida .ozc-product-card__wa-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.28), 0 12px 22px rgba(37, 211, 102, 0.3);
}
