/* ===== HOME PAGE ===== */

.page-home .hero-section{
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  color: #111111;
  border-radius: 14px;
}

.page-home .hero-section h1,
.page-home .hero-section h2,
.page-home .hero-section h3,
.page-home .hero-section p,
.page-home .hero-section span{
  color: #111111;
}

.page-home .hero-section .badge{
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(0,0,0,.08);
}

.page-home .hero-section .btn{
  background: #111111;
  color: #ffffff;
  border: none;
}

.page-home .hero-section .btn:hover{
  background: #222222;
  color: #ffffff;
}

.page-home .home-card .card-body{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-prod-name{
  color: #111111 !important;
  font-weight: 600;
  min-height: 40px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .home-price{
  color: #ff4d00 !important;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.2;
}

.page-home .shop-card{
  color: #111111 !important;
}

.page-home .shop-card .card-body *{
  color: inherit;
}

.page-home .home-card .prod-rating{
  margin-top: auto;
  min-height: 18px;
}

.page-home .home-card .prod-rating .stars{
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 1;
}

.page-home .home-card .prod-rating .small{
  line-height: 1;
}

@media (max-width: 768px){
  .page-home .hero-section{
    border-radius: 12px;
  }

  .page-home .home-prod-name{
    min-height: 38px;
    font-size: 14px;
  }

  .page-home .home-price{
    font-size: 14px;
  }
}

/*slide pro*/

/* ===== HOME PRO SLIDER ===== */
.page-home .pro-slider{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: #ffffff;
  box-shadow: 0 0 28px rgba(56,189,248,.08);
  padding: 18px 12px 14px;
}

.page-home .pro-viewport{
  overflow: hidden;
  width: 100%;
}

.page-home .pro-track{
  display: flex;
  gap: 16px;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.page-home .pro-track.dragging{
  cursor: grabbing;
}

.page-home .pro-slide{
  flex: 0 0 auto;
  width: 260px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  border: 1px solid rgba(0,0,0,.08);
  background: #111827;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.page-home .pro-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92) contrast(1.05);
  transform: scale(1.02);
}

.page-home .pro-slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.60));
  opacity: .95;
}

.page-home .pro-slide:hover{
  transform: translateY(-2px);
  border-color: rgba(238,77,45,.45);
  box-shadow: 0 10px 24px rgba(238,77,45,.14);
}

.page-home .pro-cap{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.page-home .pro-left{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-home .pro-name{
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 170px;
}

.page-home .pro-meta{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .pro-price{
  color: #f9fafb;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.page-home .pro-rating{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.88);
}

.page-home .stars{
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.page-home .star{
  font-size: 12px;
  opacity: .35;
  color: #fbbf24;
}

.page-home .star.on{
  opacity: 1;
  text-shadow: 0 0 10px rgba(251,191,36,.22);
}

.page-home .rcnt{
  opacity: .78;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.page-home .pro-cta{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(4px);
}

.page-home .pro-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
  color: #111827;
  font-size: 26px;
  line-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: .2s ease;
}

.page-home .pro-nav:hover{
  background: #ffffff;
  border-color: rgba(238,77,45,.35);
  color: #ee4d2d;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
}

.page-home .pro-nav.prev{ left: 10px; }
.page-home .pro-nav.next{ right: 10px; }

.page-home .pro-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.page-home .pro-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.08);
  cursor: pointer;
  transition: .2s ease;
}

.page-home .pro-dot.active{
  width: 18px;
  border-color: rgba(238,77,45,.7);
  background: rgba(238,77,45,.22);
  box-shadow: 0 0 14px rgba(238,77,45,.14);
}

@media (max-width: 768px){
  .page-home .pro-slide{
    width: 220px;
    height: 135px;
  }

  .page-home .pro-name{
    max-width: 145px;
    font-size: 12px;
  }

  .page-home .pro-nav{
    display: none;
  }
}

#pageLoader{
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease, visibility .3s ease;
}

#pageLoader.is-hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content{
  text-align: center;
}

.spinner{
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loader-text{
  font-weight: 800;
  letter-spacing: .2em;
  color: #111827;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}
