/* public_html/css/style.css?v=11 */

/* 1) Reset & base */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-content { flex: 1; }

/* 2) Navbar shadow */
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* 3) Card hover effect */
.card {
  position: relative !important;
  overflow: visible !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 4) Buttons rounding */
.btn-primary { border-radius: 0.3rem; }

/* 5) Image wrapper */
.card .img-wrap {
  position: relative;
  overflow: visible;
}

/* 6) Sold-Out banner (always top-right of image) */
.sold-out-banner {
  position: absolute !important;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(128,128,128,0.8) !important;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  z-index: 100;
}

/* 7) Stock-Left banner (default top-left of image) */
.stock-left-banner {
  position: absolute !important;
  top: 0.5rem;
  left: 0.5rem;
  background: #ff8c00 !important;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  z-index: 100;
  display: inline-block;
}

/* 8) Discount badge (always top-right of image) */
.discount-badge {
  position: absolute !important;
  top: 0.5rem;
  right: 0.5rem;
  background: #dc3545 !important;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  z-index: 100;
  display: inline-block;
}

/* 9) MOBILE only: push stock badge to bottom-left of the image */
@media (max-width: 576px) {
  .card .img-wrap .stock-left-banner {
    top: auto   !important;
    bottom: -0.3rem !important;
    left: 0.5rem !important;
  }
}

/* 10) Footer */
footer {
  flex-shrink: 0;
  height: 5rem;
  background-color: #212529;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 11) Floating Cart */
#floatingCart {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #ff8c00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
}
#floatingCart .badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  background-color: #0d6efd;
  color: #fff;
  width: 1.6rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  line-height: 1;
  z-index: 1001;
}

/* 12) Floating Back Button */
#floatingBack {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1100;
}
#floatingBack i {
  color: #212529;
  font-size: 1.5rem;
}

/* 13) Hero text shadow */
.text-shadow {
  text-shadow:
    4px 4px 12px rgba(0,0,0,1),
    2px 2px 6px rgba(0,0,0,0.7);
  color: #fff !important;
}
