/* =========================
   PUBLISHER · Shop
   Overrides específicos
   ========================= */

/* 
   Archivo reservado para diferencias exclusivas de Shop.

   Por ahora queda vacío porque el frontend.css actual
   no contiene reglas específicas de esta área.
*/

/* =========================
   PUBLISHER · Shop
   Compact cards desktop + mobile
   ========================= */

.publisher-catalog[data-area="shop"] .publisher-catalog__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.publisher-catalog[data-area="shop"] .publisher-card {
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.publisher-catalog[data-area="shop"] .publisher-card__image-wrap {
  aspect-ratio: 1 / 1;
}

.publisher-catalog[data-area="shop"] .publisher-card__share {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
}

.publisher-catalog[data-area="shop"] .publisher-card__share-label {
  display: none;
}

.publisher-catalog[data-area="shop"] .publisher-card__body,
.publisher-catalog[data-area="shop"] .publisher-card__body--with-type,
.publisher-catalog[data-area="shop"] .publisher-card__body--no-type {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  gap: 4px !important;
  padding: 12px 12px 12px !important;
  flex: 1 1 auto;
  grid-template-rows: none !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__type-row {
  margin: 0 0 4px !important;
  display: flex;
  justify-content: flex-start;
  padding-left: 0 !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__type {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  font-size: 10px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.publisher-catalog[data-area="shop"] .publisher-card__title-row {
  margin: 0 !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__title {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 17px;
  line-height: 1.04 !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publisher-catalog[data-area="shop"] .publisher-card__excerpt-row {
  display: block;
  margin: 0 !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__excerpt {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 13px;
  line-height: 1.22 !important;
  color: #5b6574;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publisher-catalog[data-area="shop"] .publisher-card__meta-row {
  display: none !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__prices-row {
  display: block !important;
  margin: 0 0 1px !important;
}


.publisher-catalog[data-area="shop"] .publisher-card__prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.publisher-catalog[data-area="shop"] .publisher-card__discount-row,
.publisher-catalog[data-area="shop"] .publisher-card__price-old-row {
  margin: 0;
}

.publisher-catalog[data-area="shop"] .publisher-card__discount {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffe7e7;
  color: #c62828;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.publisher-catalog[data-area="shop"] .publisher-card__price-old-label {
  display: none;
}

.publisher-catalog[data-area="shop"] .publisher-card__price-old {
  color: #c62828;
  font-size: 12px;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.95;
}

/* La clave: el footer contiene botón + precio actual */
.publisher-catalog[data-area="shop"] .publisher-card__footer {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: stretch;
  gap: 4px;
  margin-top: auto !important;
  padding-top: 4px !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__price-current-wrap {
  margin: 0 !important;
  display: block;
}

.publisher-catalog[data-area="shop"] .publisher-card__price-current {
  display: block;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 3px !important;
}

.publisher-catalog[data-area="shop"] .publisher-card__price-current-wrap::after {
  content: "Envío disponible";
  display: block;
  font-size: 11px;
  line-height: 1.15;
  color: #5b6574;
}

.publisher-catalog[data-area="shop"] .publisher-card__button,
.publisher-catalog[data-area="shop"] .publisher-card__button:hover,
.publisher-catalog[data-area="shop"] .publisher-card__button:focus,
.publisher-catalog[data-area="shop"] .publisher-card__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0 !important;
  font-weight: 700;
}

.publisher-catalog[data-area="shop"] .publisher-card__button::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h7.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
}

.publisher-catalog[data-area="shop"] .publisher-card__button::after {
  content: "Comprar";
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 780px) {
  .publisher-catalog[data-area="shop"] .publisher-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}








/* =========================
   PUBLISHER · Shop slider meta icons
   ========================= */

.publisher-slider__meta-item--unicos::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7L21 9.6l-4.5 4.4 1.1 6.3L12 17.3 6.4 20.3 7.5 14 3 9.6l6.2-.9L12 3z'/%3E%3C/svg%3E");
}

.publisher-slider__meta-item--descuento::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3Ccircle cx='16.5' cy='16.5' r='1.5'/%3E%3Cpath d='M6 18L18 6'/%3E%3C/svg%3E");
}
