/* Custom component classes for C9 SBuyZone */

body {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #db2777;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1.25rem;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:focus { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1.25rem;
  transition: all 0.2s; cursor: pointer;
  background-color: #ec4899; color: #fff; border: none;
}
.btn-primary:hover { background-color: #db2777; }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1.25rem;
  transition: all 0.2s; cursor: pointer;
  background-color: #f3f4f6; color: #374151; border: none;
}
.btn-secondary:hover { background-color: #e5e7eb; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1.25rem;
  transition: all 0.2s; cursor: pointer;
  background: transparent; color: #db2777; border: 1px solid #ec4899;
}
.btn-outline:hover { background-color: #fdf2f8; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1.25rem;
  transition: all 0.2s; cursor: pointer;
  background-color: #ef4444; color: #fff; border: none;
}
.btn-danger:hover { background-color: #dc2626; }

/* Inputs */
.input {
  width: 100%; padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
  font-size: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.input:focus {
  outline: none; border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236,72,153,0.15);
}

.label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: #374151; margin-bottom: 0.25rem;
}

/* Card */
.card {
  background: #fff; border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-primary { background: #fce7f3; color: #9d174d; }
.badge-promo   { background: #fce7f3; color: #9d174d; }

/* Gallery */
.gallery-scroll {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll > * {
  scroll-snap-align: center;
  flex-shrink: 0; width: 100%;
}

/* Bottom nav safe area */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #e5e7eb; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Quantity buttons */
.qty-btn {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: #f3f4f6; color: #374151;
  cursor: pointer; transition: background 0.15s; border: none;
}
.qty-btn:hover { background: #e5e7eb; }

/* Toast notification */
.toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 0.75rem 1.5rem;
  border-radius: 0.5rem; font-size: 0.875rem; z-index: 100;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
