/* Sara & Montiel – Recién llegados | visual unificado con WooCommerce Archive */
.sm-new-products-section{
  --smnp-purple:#654779;
  --smnp-purple-dark:#503461;
  --smnp-lilac:#9674b1;
  --smnp-aqua:#32b9b5;
  --smnp-ink:#352744;
  width:100%;
  padding:34px 20px 42px;
  margin:0;
  background:#fff;
  color:var(--smnp-ink);
  font-family:inherit;
  box-sizing:border-box;
}
.sm-new-products-section,
.sm-new-products-section *{box-sizing:border-box}
.sm-new-products-section .smnp-container{width:100%;max-width:1180px;margin:0 auto}
.sm-new-products-section .smnp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.sm-new-products-section .smnp-heading-copy>span{display:block;color:#8b7d91;font-size:12px;line-height:1.5;margin:0 0 3px}
.sm-new-products-section .smnp-heading-copy h2{margin:0 0 8px!important;padding:0;color:var(--smnp-ink);font-size:27px;line-height:1.2;font-weight:800}
.sm-new-products-section .smnp-heading-line{width:45px;height:3px;background:var(--smnp-aqua);border-radius:4px}
.sm-new-products-section .smnp-view-all{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 16px;border:1px solid var(--smnp-lilac);border-radius:20px;color:var(--smnp-purple)!important;background:#fff;font-size:11px;font-weight:700;text-decoration:none!important;white-space:nowrap;transition:background .2s,color .2s}
.sm-new-products-section .smnp-view-all:hover{background:var(--smnp-purple);color:#fff!important}

/* Product grid and cards: same border, radius, spacing and shadow as archive */
.sm-new-products-section .smnp-grid{display:grid!important;grid-template-columns:repeat(var(--smnp-columns,4),minmax(0,1fr))!important;gap:28px 20px!important;width:100%;margin:0!important;padding:0!important;align-items:stretch}
.sm-new-products-section .smnp-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0;width:auto!important;margin:0!important;padding:12px 12px 15px!important;float:none!important;clear:none!important;background:#fff!important;border:1px solid #f0eaf2!important;border-radius:13px!important;box-shadow:0 5px 18px rgba(66,43,78,.045)!important;transition:transform .25s ease,box-shadow .25s ease!important;text-align:center!important}
.sm-new-products-section .smnp-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(66,43,78,.10)!important}

/* A fixed square canvas; the image itself keeps its native aspect ratio. */
.sm-new-products-section .smnp-card > a.smnp-image{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  margin:0 0 13px!important;
  padding:0!important;
  background:#fbf9fc!important;
  border:0!important;
  border-radius:9px!important;
  text-decoration:none!important;
}
.sm-new-products-section .smnp-card > a.smnp-image > img{
  position:static!important;
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  aspect-ratio:auto!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  transform:none!important;
}
.sm-new-products-section .smnp-card:hover .smnp-image img{transform:none!important}

.sm-new-products-section .smnp-info{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:center!important;padding:0 2px!important;text-align:center!important}
.sm-new-products-section .smnp-info h3{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;width:100%;min-height:38px;max-height:38px;margin:0 0 8px!important;padding:0!important;color:var(--smnp-ink)!important;font-size:13px!important;line-height:1.45!important;font-weight:700!important;text-align:center!important}
.sm-new-products-section .smnp-info h3 a{color:inherit!important;text-decoration:none!important}
.sm-new-products-section .smnp-price{min-height:22px;margin:0 0 12px!important;color:var(--smnp-ink)!important;font-size:15px!important;font-weight:800!important;line-height:1.4!important;text-align:center!important}
.sm-new-products-section .smnp-price .price{color:inherit!important;font-size:inherit!important;font-weight:inherit!important}
.sm-new-products-section .smnp-price del{font-size:11px;opacity:.55}
.sm-new-products-section .smnp-price ins{text-decoration:none;color:var(--smnp-purple)}
.sm-new-products-section .smnp-add-cart{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px;min-width:105px;min-height:38px;margin:auto auto 0!important;padding:9px 16px!important;border:0!important;border-radius:7px!important;background:linear-gradient(135deg,var(--smnp-lilac),var(--smnp-purple))!important;color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;text-align:center!important;text-decoration:none!important;box-shadow:none!important;transition:filter .2s,transform .2s!important}
.sm-new-products-section .smnp-add-cart:before{content:"";display:inline-block;width:14px;height:14px;flex:0 0 14px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E")}
.sm-new-products-section .smnp-add-cart:hover{filter:brightness(1.08);transform:translateY(-1px)!important;color:#fff!important}
.sm-new-products-section .smnp-add-cart.added{background:var(--smnp-purple-dark)!important}
.sm-new-products-section .sm-new-empty{padding:14px 18px;background:#f8f6f8;border-radius:8px;color:var(--smnp-purple)}
@media(max-width:900px){
 .sm-new-products-section .smnp-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 14px!important}
 .sm-new-products-section .smnp-card{padding:10px 10px 13px!important}
}
@media(max-width:767px){
 .sm-new-products-section{padding:30px 15px 36px}
 .sm-new-products-section .smnp-heading{align-items:flex-end;gap:10px;margin-bottom:20px}
 .sm-new-products-section .smnp-heading-copy h2{font-size:22px}
 .sm-new-products-section .smnp-view-all{min-height:32px;padding:7px 10px;font-size:9px}
 .sm-new-products-section .smnp-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 12px!important}
 .sm-new-products-section .smnp-card{padding:8px 8px 12px!important;border-radius:10px!important}
 .sm-new-products-section .smnp-info h3{font-size:11px!important;min-height:34px;max-height:34px}
 .sm-new-products-section .smnp-price{font-size:13px!important}
 .sm-new-products-section .smnp-add-cart{width:100%;min-height:36px;font-size:11px!important;padding:8px 6px!important}
}


/* Ofertas: distintivo de precio rebajado */
.sm-new-products-section .smnp-sale-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:5px 10px;
  border-radius:5px;
  background:#8259a0;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 2px 8px rgba(45,25,58,.15);
}
