*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Custom Utilities & Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Background */
.glass-effect {
  background: rgba(252, 249, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Modal Smooth Animations */
#checkoutModal {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#modalContainer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   REUSABLE TRANSFORMATION CARD COMPONENT
   ========================================================================= */

.trans-card {
  min-width: 320px;
  max-width: 390px;
  background-color: #ffffff !important;
  border-radius: 1rem !important; /* 16px */
  padding: 1.25rem !important;
  border: 1px solid rgba(213, 195, 184, 0.6) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  .trans-card {
    min-width: 360px;
  }
}

@media (min-width: 1024px) {
  .trans-card {
    min-width: 380px;
  }
}

.trans-card:hover {
  box-shadow: 0 10px 25px -5px rgba(111, 70, 38, 0.12) !important;
}

/* 
  Fixed Rounded Corner Clipping:
  Prevents GPU acceleration from overflowing rectangular image boundaries on WebKit/Blink
*/
.trans-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0.75rem !important; /* 12px */
  overflow: hidden !important;
  margin-bottom: 1rem;
  background-color: rgba(234, 231, 231, 0.7);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  isolation: isolate !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
  mask-image: radial-gradient(white, black) !important;
  transform: translateZ(0);
}

.trans-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0.75rem !important; /* 12px */
  display: block;
  transform: scale(1.04);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trans-card:hover .trans-card-img {
  transform: scale(1.08);
}

.trans-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 10;
}

.trans-card-pill {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: #fc9520;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.trans-card-footer {
  padding-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
