/* =========================================================
   RR AudioCar Home Refresh
   Inspiración Puppis + identidad RR AudioCar
   Aplica a carruseles del inicio y categorías.
   ========================================================= */

:root{
  --rr-home-red:#e63946;
  --rr-home-ink:#0f172a;
  --rr-home-text:#1f2937;
  --rr-home-muted:#6b7280;
  --rr-home-line:#e8edf3;
  --rr-home-panel:#ffffff;
  --rr-home-shadow:0 10px 28px rgba(15,23,42,.08);
  --rr-home-shadow-hover:0 18px 38px rgba(15,23,42,.12);
}

.home .ml-bubbles,
.home .ml-carousel,
.home .ml-offers-block,
.home .ml-cats-block,
.home .ml-cat-carousel{
  margin-bottom:34px;
}

.home .ml-bubbles .swiper,
.home .ml-carousel .swiper,
.home .ml-offers-block .swiper,
.home .ml-cats-block .swiper,
.home .ml-cat-carousel .swiper{
  overflow:hidden;
  border-radius:22px;
}

.home .ml-bubbles .swiper,
.home .ml-carousel .swiper,
.home .ml-offers-right .swiper,
.home .ml-cats-block .swiper,
.home .ml-cat-carousel .swiper,
.home .rr-home-mobile-snap{
  background:transparent;
}

.home .ml-cats-head,
.home .ml-block-head,
.home .ml-offer-head,
.home .ml-offer-head-row,
.home .ml-carousel > .ml-title{
  position:relative;
}

.home .ml-cats-head,
.home .ml-block-head,
.home .ml-offer-head,
.home .ml-offer-head-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.home .ml-h3,
.home .ml-title{
  margin:0 !important;
  color:var(--rr-home-ink) !important;
  font-weight:800 !important;
  letter-spacing:-.02em;
}

.home .ml-h3{
  font-size:31px !important;
  line-height:1.1 !important;
}

.home .ml-title{
  font-size:28px !important;
  line-height:1.12 !important;
  margin-bottom:16px !important;
}

.home .ml-block-link,
.home .ml-cats-link,
.home .ml-offers-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  color:#2563eb !important;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}

.home .ml-block-link:hover,
.home .ml-cats-link:hover,
.home .ml-offers-link:hover{
  color:#1d4ed8 !important;
}

/* Product cards */
.home .ml-carousel .rr-ra-card,
.home .ml-offers-right .rr-ra-card,
.home .ml-cat-carousel .rr-ra-card,
.home .rr-home-mobile-snap--products .rr-ra-card{
  padding:2px 0 10px;
}

.home .ml-carousel .rr-ra-card__inner,
.home .ml-offers-right .rr-ra-card__inner,
.home .ml-cat-carousel .rr-ra-card__inner,
.home .rr-home-mobile-snap--products .rr-ra-card__inner{
  border:1px solid var(--rr-home-line) !important;
  border-radius:22px !important;
  box-shadow:var(--rr-home-shadow) !important;
  overflow:hidden !important;
  background:var(--rr-home-panel) !important;
}

.home .ml-carousel .rr-ra-card__inner:hover,
.home .ml-offers-right .rr-ra-card__inner:hover,
.home .ml-cat-carousel .rr-ra-card__inner:hover,
.home .rr-home-mobile-snap--products .rr-ra-card__inner:hover{
  transform:translateY(-4px) !important;
  box-shadow:var(--rr-home-shadow-hover) !important;
}

.home .ml-carousel .rr-ra-card__media,
.home .ml-offers-right .rr-ra-card__media,
.home .ml-cat-carousel .rr-ra-card__media,
.home .rr-home-mobile-snap--products .rr-ra-card__media{
  min-height:210px !important;
  padding:24px !important;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
  border-bottom:1px solid #eef2f6 !important;
}

.home .ml-carousel .rr-ra-card__badge,
.home .ml-offers-right .rr-ra-card__badge,
.home .ml-cat-carousel .rr-ra-card__badge,
.home .rr-home-mobile-snap--products .rr-ra-card__badge{
  top:14px !important;
  left:14px !important;
  right:auto !important;
  border-radius:999px !important;
  padding:7px 11px !important;
  font-size:11px !important;
  box-shadow:0 10px 20px rgba(230,57,70,.22) !important;
}

.home .ml-carousel .rr-ra-card__body,
.home .ml-offers-right .rr-ra-card__body,
.home .ml-cat-carousel .rr-ra-card__body,
.home .rr-home-mobile-snap--products .rr-ra-card__body{
  padding:16px 16px 14px !important;
}

.home .ml-carousel .rr-ra-card__rating,
.home .ml-offers-right .rr-ra-card__rating,
.home .ml-cat-carousel .rr-ra-card__rating,
.home .rr-home-mobile-snap--products .rr-ra-card__rating{
  margin-bottom:7px !important;
}

.home .ml-carousel .rr-ra-card__rating-num,
.home .ml-offers-right .rr-ra-card__rating-num,
.home .ml-cat-carousel .rr-ra-card__rating-num,
.home .rr-home-mobile-snap--products .rr-ra-card__rating-num{
  font-size:11px !important;
}

.home .ml-carousel .rr-ra-card__sold,
.home .ml-offers-right .rr-ra-card__sold,
.home .ml-cat-carousel .rr-ra-card__sold,
.home .rr-home-mobile-snap--products .rr-ra-card__sold{
  font-size:11px !important;
}

.home .ml-carousel .rr-ra-card__title,
.home .ml-offers-right .rr-ra-card__title,
.home .ml-cat-carousel .rr-ra-card__title,
.home .rr-home-mobile-snap--products .rr-ra-card__title{
  color:var(--rr-home-text) !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.28 !important;
  min-height:2.6em !important;
  margin-bottom:10px !important;
}

.home .ml-carousel .rr-ra-card__old,
.home .ml-offers-right .rr-ra-card__old,
.home .ml-cat-carousel .rr-ra-card__old,
.home .rr-home-mobile-snap--products .rr-ra-card__old{
  font-size:11px !important;
  opacity:1 !important;
  margin-bottom:4px !important;
}

.home .ml-carousel .rr-ra-card__price,
.home .ml-offers-right .rr-ra-card__price,
.home .ml-cat-carousel .rr-ra-card__price,
.home .rr-home-mobile-snap--products .rr-ra-card__price{
  margin-bottom:8px !important;
}

.home .ml-carousel .rr-ra-card__price,
.home .ml-carousel .rr-ra-card__price .amount,
.home .ml-carousel .rr-ra-card__price span,
.home .ml-offers-right .rr-ra-card__price,
.home .ml-offers-right .rr-ra-card__price .amount,
.home .ml-offers-right .rr-ra-card__price span,
.home .ml-cat-carousel .rr-ra-card__price,
.home .ml-cat-carousel .rr-ra-card__price .amount,
.home .ml-cat-carousel .rr-ra-card__price span,
.home .rr-home-mobile-snap--products .rr-ra-card__price,
.home .rr-home-mobile-snap--products .rr-ra-card__price .amount,
.home .rr-home-mobile-snap--products .rr-ra-card__price span{
  color:var(--rr-home-red) !important;
  font-size:20px !important;
  line-height:1 !important;
  font-weight:800 !important;
}

.home .ml-carousel .rr-ra-card__ship,
.home .ml-offers-right .rr-ra-card__ship,
.home .ml-cat-carousel .rr-ra-card__ship,
.home .rr-home-mobile-snap--products .rr-ra-card__ship{
  margin-bottom:0 !important;
}

.home .ml-carousel .rr-ra-card__ship-text,
.home .ml-offers-right .rr-ra-card__ship-text,
.home .ml-cat-carousel .rr-ra-card__ship-text,
.home .rr-home-mobile-snap--products .rr-ra-card__ship-text{
  font-size:12px !important;
  font-weight:700 !important;
}

.home .ml-carousel .rr-ra-card__actions,
.home .ml-offers-right .rr-ra-card__actions,
.home .ml-cat-carousel .rr-ra-card__actions,
.home .rr-home-mobile-snap--products .rr-ra-card__actions{
  padding-inline:16px !important;
}

.home .ml-carousel .rr-ra-card__btn,
.home .ml-offers-right .rr-ra-card__btn,
.home .ml-cat-carousel .rr-ra-card__btn,
.home .rr-home-mobile-snap--products .rr-ra-card__btn{
  border-radius:14px !important;
  min-height:42px !important;
  font-weight:700 !important;
}

/* Featured offer card */
.home .ml-offers-grid{
  display:grid;
  grid-template-columns:minmax(250px,320px) minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.home .ml-offer-day{
  background:#fff;
  border:1px solid var(--rr-home-line);
  border-radius:24px;
  box-shadow:var(--rr-home-shadow);
  padding:18px;
}

.home .ml-offer-day .ml-h3{
  font-size:24px !important;
}

.home .ml-offer-day .rr-ra-card{
  padding:0;
}

.home .ml-offer-day .rr-ra-card__inner{
  border:none !important;
  box-shadow:none !important;
  border-radius:18px !important;
}

.home .ml-offers-right{
  min-width:0;
}

/* Categories */
.home .ml-cats-block,
.home .ml-cat-carousel,
.home .ml-bubbles{
  position:relative;
}

.home .ml-cats-block .ml-cat-card,
.home .rr-home-mobile-snap--categories .ml-cat-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  text-decoration:none;
  min-height:170px;
  padding:16px 14px 18px;
  border:1px solid var(--rr-home-line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--rr-home-shadow);
  transition:transform .22s ease, box-shadow .22s ease;
}

.home .ml-cats-block .ml-cat-card:hover,
.home .rr-home-mobile-snap--categories .ml-cat-card:hover,
.home .ml-bubbles .ml-bubble:hover{
  transform:translateY(-3px);
  box-shadow:var(--rr-home-shadow-hover);
}

.home .ml-cats-block .ml-cat-thumb,
.home .rr-home-mobile-snap--categories .ml-cat-thumb,
.home .ml-bubbles .ml-bubble__circle{
  width:92px;
  height:92px;
  border-radius:24px;
  background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:10px;
  margin:0 auto;
}

.home .ml-cats-block .ml-cat-img,
.home .rr-home-mobile-snap--categories .ml-cat-img,
.home .ml-bubbles .ml-bubble__img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.home .ml-cats-block .ml-cat-name,
.home .rr-home-mobile-snap--categories .ml-cat-name,
.home .ml-bubbles .ml-bubble__label{
  color:var(--rr-home-text);
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  text-align:center;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}

.home .ml-bubbles .ml-bubble{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-decoration:none;
}

/* Arrows like Puppis */
.home .ml-arrow,
.home .swiper-button-next.ml-arrow,
.home .swiper-button-prev.ml-arrow{
  width:46px !important;
  height:46px !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid #e7ebf1 !important;
  box-shadow:0 12px 28px rgba(15,23,42,.12) !important;
  top:calc(50% - 8px) !important;
}

.home .ml-arrow::after,
.home .swiper-button-next.ml-arrow::after,
.home .swiper-button-prev.ml-arrow::after{
  font-size:15px !important;
  color:#111827 !important;
  font-weight:800 !important;
}

.home .ml-carousel .swiper-button-prev,
.home .ml-offers-right .swiper-button-prev,
.home .ml-cat-carousel .swiper-button-prev,
.home .ml-cats-block .swiper-button-prev{
  left:10px !important;
}

.home .ml-carousel .swiper-button-next,
.home .ml-offers-right .swiper-button-next,
.home .ml-cat-carousel .swiper-button-next,
.home .ml-cats-block .swiper-button-next{
  right:10px !important;
}

/* Mobile */
@media (max-width: 767px){
  .home .ml-bubbles,
  .home .ml-carousel,
  .home .ml-offers-block,
  .home .ml-cats-block,
  .home .ml-cat-carousel{
    margin-bottom:28px;
  }

  .home .ml-cats-head,
  .home .ml-block-head,
  .home .ml-offer-head,
  .home .ml-offer-head-row{
    margin-bottom:14px;
    padding-inline:16px;
  }

  .home .ml-title{
    font-size:24px !important;
    padding-inline:16px;
    margin-bottom:14px !important;
  }

  .home .ml-h3{
    font-size:24px !important;
  }

  .home .ml-block-link,
  .home .ml-cats-link,
  .home .ml-offers-link{
    font-size:13px;
  }

  .home .rr-home-mobile-snap{
    padding-left:16px;
    padding-right:16px;
    margin-left:0;
    margin-right:0;
  }

  .home .rr-home-mobile-snap__track{
    gap:14px;
    padding-right:8px;
  }

  .home .rr-home-mobile-snap--products .rr-home-mobile-snap__item{
    flex:0 0 min(48vw, 198px);
    min-width:min(48vw, 198px);
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__inner{
    border-radius:20px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__media{
    min-height:176px !important;
    padding:18px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__body{
    padding:13px 13px 12px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__title{
    font-size:13px !important;
    min-height:2.55em !important;
    margin-bottom:8px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__price,
  .home .rr-home-mobile-snap--products .rr-ra-card__price .amount,
  .home .rr-home-mobile-snap--products .rr-ra-card__price span{
    font-size:18px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__old{
    font-size:10px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__badge{
    top:10px !important;
    left:10px !important;
    padding:6px 9px !important;
    font-size:10px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__ship-text{
    font-size:11px !important;
  }

  .home .rr-home-mobile-snap--products .rr-ra-card__btn,
  .home .rr-home-mobile-snap--products .rr-ra-card__nostock{
    min-height:38px !important;
    border-radius:12px !important;
  }

  .home .ml-offers-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .home .ml-offer-day{
    border-radius:22px;
    padding:14px;
    margin-inline:16px;
  }

  .home .ml-offer-day .rr-ra-card__media{
    min-height:190px !important;
  }

  .home .rr-home-mobile-snap--categories .rr-home-mobile-snap__item,
  .home .rr-home-mobile-snap--bubbles .rr-home-mobile-snap__item{
    flex:0 0 126px;
    min-width:126px;
  }

  .home .rr-home-mobile-snap--categories .ml-cat-card,
  .home .rr-home-mobile-snap--bubbles .ml-bubble{
    min-height:auto;
  }

  .home .rr-home-mobile-snap--categories .ml-cat-card{
    padding:14px 12px 16px;
    border-radius:20px;
  }

  .home .rr-home-mobile-snap--categories .ml-cat-thumb,
  .home .rr-home-mobile-snap--bubbles .ml-bubble__circle{
    width:82px;
    height:82px;
    border-radius:20px;
  }

  .home .rr-home-mobile-snap--categories .ml-cat-name,
  .home .rr-home-mobile-snap--bubbles .ml-bubble__label{
    font-size:12px;
  }

  .home .ml-arrow,
  .home .swiper-button-next.ml-arrow,
  .home .swiper-button-prev.ml-arrow{
    width:40px !important;
    height:40px !important;
  }
}
