/* ============================================
   HITSGALE — Urban Light Design System
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #FFFFFF;
  color: #1a1a1a;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100dvh;
  margin: 0;
}

::selection {
  background-color: #333333;
  color: #ffffff;
}

/* — Material Symbols ————————————————————————— */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* — Scrollbar ———————————————————————————————— */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F4F4F9; }
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* — No-scrollbar utility ————————————————————— */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* — Typography helpers ——————————————————————— */
.font-display { font-family: 'Montserrat', 'Inter', sans-serif; }

/* — Card system —————————————————————————————— */
.card-urban {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.card-urban:hover {
  box-shadow: 0 20px 40px -5px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: #D1D5DB;
}

/* — Quick-buy overlay ———————————————————————— */
.quick-buy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}
.group:hover .quick-buy-overlay {
  opacity: 1;
}

/* — Button styles ———————————————————————————— */
.btn-primary {
  background: #333333;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: #333333;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 12px;
  border: 1.5px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: #333333;
  background: #F4F4F9;
}

/* — Category card image zoom ————————————————— */
.cat-img {
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.group:hover .cat-img {
  transform: scale(1.06);
}

/* — Free shipping progress bar ——————————————— */
.shipping-progress {
  background: #F4F4F9;
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}
.shipping-progress-fill {
  background: linear-gradient(90deg, #6B7280, #333333);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* — WhatsApp floating button ————————————————— */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* — Modal animation —————————————————————————— */
.animate-modal {
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* — Stagger utility for children ————————————— */
.stagger > *:nth-child(1) { animation-delay: 0ms;   }
.stagger > *:nth-child(2) { animation-delay: 80ms;  }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }

/* — Soft gradient overlays ———————————————————— */
.gradient-white-bottom {
  background: linear-gradient(to top, #FFFFFF 0%, transparent 100%);
}

/* — Trust badge icon circle ——————————————————— */
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #F4F4F9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* — Responsive pb-safe ———————————————————————— */
@supports(padding-bottom: env(safe-area-inset-bottom)) {
  .pb-safe { padding-bottom: env(safe-area-inset-bottom); }
}

/* — Input focus ring (Urban Light) ——————————— */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #333333 !important;
  box-shadow: 0 0 0 3px rgba(51,51,51,0.08);
}

/* — Age Gate ————————————————————————————————— */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 1s ease-in-out;
}

.age-gate-container {
  width: 100%;
  max-width: 500px;
  min-height: 350px;
  background-image: url('../img/age-gate-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.age-gate-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .age-gate-btns {
    flex-direction: row;
    justify-content: center;
  }
}
