:root {
  --background: #f5f5f5;
  --foreground: #171717;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: 'Inter', sans-serif;
  /* Explicitly prioritize Inter */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit !important;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:visited {
  color: inherit !important;
}

/* Global Utilities */

/* Layout */
.mobile-layout {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  min-height: 100vh;
  /* Next.js font variable usage if possible, else standard */
  font-family: 'Inter', sans-serif;
  max-width: 480px;
  margin: 0 auto;

  padding-top: 90px;
  /* Space for top fixed bar */
  padding-bottom: 140px;
  /* Space for bottom fixed bar */
}

/* Typography */
.text-xs {
  font-size: 10px;
}

.text-sm {
  font-size: 12px;
}

.text-base {
  font-size: 14px;
}

.text-lg {
  font-size: 16px;
}

.text-xl {
  font-size: 20px;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-gray {
  color: #757575;
}

.text-dark {
  color: #333;
}

.text-white {
  color: white;
}

.text-primary {
  color: #fe2c55;
}

.text-green {
  color: #26aa99;
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn-primary {
  background-color: #fe2c55;
  color: white;
  border-radius: 999px;
  font-weight: 700;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
  border-radius: 999px;
  font-weight: 700;
}

.btn-icon {
  background: none;
  color: #333;
  padding: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
}

.badge-red {
  background-color: #fe2c55;
  color: white;
  border-radius: 8px;
  /* Cart badge style */
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border: 1px solid white;
}

.badge-discount {
  background-color: white;
  color: #fe2c55;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Icons */
.icon-sm {
  width: 12px;
  height: 12px;
}

.icon-md {
  width: 18px;
  height: 18px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

/* Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

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

.w-full {
  width: 100%;
}


button,
input,
textarea,
select {
  font-family: inherit;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 350px;
  animation: slideIn 0.3s ease-out forwards;
  border-left: 4px solid #333;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  pointer-events: auto;
}

.toast.success {
  border-left-color: #00c853;
  /* Green */
}

.toast.error {
  border-left-color: #ff3b30;
  /* Red */
}

.toast.info {
  border-left-color: #007aff;
  /* Blue */
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #00c853;
}

.toast.error .toast-icon {
  color: #ff3b30;
}

.toast.info .toast-icon {
  color: #007aff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}