/* =========================
   Latest Section
   ========================= */
.latest{
  padding: 18px 0 8px;
}
.prod-carousel-title{
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  color: var(--ink-900);
  display: none;
}

/* Owl stage padding for edge breathing */
.product-carousel .owl-stage-outer{
  padding: 6px 0 18px;
}

/* =========================
   Product Card
   ========================= */
.product-carousel .prod-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--barik-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-carousel .prod-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(0, 0, 0, 0.2);
}

.prod-img{
  display:block;
  background: var(--barik-50);
}
.prod-img img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
  transition: transform .25s ease;
}
.prod-card:hover .prod-img img{
  transform: scale(1.03);
}

.prod-body{
  padding: 12px 12px 14px;
}

.prod-cat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  line-height: 1;
  color: var(--barik-700);
  background: var(--barik-50);
  border: 1px solid var(--barik-100);
  padding: 7px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.prod-name{
  display: inline-block;
  width: 100%;
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 10px;

  /* nice clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-name:hover{
  color: var(--barik-600);
}

.muted{ color: var(--muted); font-weight: 400; }

.prod-rating{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 10px;
}
.star{
  font-size: 14px;
  line-height: 1;
  color: #cbd5e1;
}
.star.is-on{
  color: #f59e0b; /* keep classic rating color */
}
.prod-score{
  font-size: 12px;
  color: var(--ink-700);
  display: none;
}

.prod-price{
  display:flex;
  align-items:baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.prod-price strong{
  color: var(--ink-900);
  font-size: 16px;
}
.strike{
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

/* wishlist mini */
.wish-mini{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--barik-100);
  background: rgba(255,255,255,.92);
  color: var(--barik-700);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  z-index: 9;
}
.wish-mini:hover{
  transform: translateY(-1px);
  border-color: var(--barik-200);
  background: #fff;
}
.wish-mini:active{
  transform: translateY(0);
}
.wish-mini.is-active{
  color: #fff;
  background: var(--barik-600);
  border-color: var(--barik-600);
}

/* button */
.btn-card {
  border-radius: var(--radius-sm);
  margin-top: 12px;
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  line-height: 44px;
  padding: 0;
}

.btn-card:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.btn-card:active{
  transform: translateY(0);
}

.btn-card span{ margin-left: 6px; }

/* =========================
   Owl nav + dots (Barik style)
   ========================= */
.product-carousel .owl-nav{
  position: absolute;
  top: -52px;
  right: 0;
  display:flex;
  gap: 10px;
}
.product-carousel .owl-nav button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--barik-100) !important;
    background: #000 !important;
    box-shadow: 0 8px 20px rgba(11, 35, 68, .08);
    color: #fff !important;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.product-carousel .owl-nav button:hover {
    transform: translateY(-1px);
    border-color: #ff0000 !important;
    background: #ff0000 !important;
}
.product-carousel .owl-nav button:active{
  transform: translateY(0);
}
.product-carousel .owl-nav button span{
  font-size: 22px;
  line-height: 1;
}

.product-carousel .owl-dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 8px;
}
.product-carousel .owl-dot span{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display:block;
  background: #aaa;
  transition: width .18s ease, background .18s ease, transform .18s ease;
}
.product-carousel .owl-dot.active span{
  width: 26px;
  background: #000;
}
.product-carousel .owl-dot:hover span{
  transform: translateY(-1px);
}

/* keep each item full height (if you want equal heights) */
.product-carousel .owl-item{
  display:flex;
}
.product-carousel .owl-item .prod-card{
  width: 100%;
}

.product-carousel .owl-nav button {
    border-radius: var(--radius-md);
}

.product-carousel{
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.product-carousel .owl-stage{
  display: flex;
}

.product-carousel .owl-item{
  touch-action: pan-y;
}

/*RESPONSIVE*/
@media (max-width: 520px){
  .latest-title { font-size: 20px; text-align: left; margin-bottom: 21px;}
  .prod-name { font-size: 14px; }
}
