html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ---- Product image hover zoom + preview (需求 1) ---- */
.img-zoom-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
.img-zoom-wrap img {
  transition: transform 0.4s ease;
  will-change: transform;
}
.img-zoom-wrap:hover img {
  transform: scale(1.12);
}
/* Magnifier lens shown above the image on product grids */
.zoom-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: none;
  font-size: 0.7rem;
}
.img-zoom-wrap:hover .zoom-badge {
  display: inline-block;
}

/* ---- Mini cart / offcanvas tweaks ---- */
.mini-cart-row:hover {
  background: rgba(0, 0, 0, 0.02);
}
#cartOffcanvas {
  width: 380px !important;
  max-width: 100vw;
}
.mini-cart-qty {
  width: 3.5rem;
}

/* Product card hover lift (used by _ProductCard partial and grid cards) */
.product-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-3px);
}
.product-card:hover .product-overlay {
  opacity: 1;
}
.pcard-prev,
.pcard-next {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-card:hover .pcard-prev,
.product-card:hover .pcard-next {
  opacity: 1;
}