/* ============================================
   SAD HOURS VINYL CLUB
   Tactical / Hardcore / Neo-Trad Styles
   ============================================ */

:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --border: #2a2a2f;
  --text: #e8e8ea;
  --text-muted: #9a9aa0;
  --accent: #9f1f2b;
  --accent-hover: #b72a37;
  --amber: #c5a46e;
  --success: #2e7d32;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system_ui, sans-serif;
}

h1, h2, h3, .display {
  font-family: 'Inter', system_ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Tactical button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-accent {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}

.btn-accent:hover {
  background: var(--amber);
  color: #111;
}

/* Product cards - tactical */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: #3a3a40;
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.product-card .image-container {
  background: #111;
  overflow: hidden;
}

.product-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.06);
}

/* Category pills */
.filter-pill {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 9999px;
  transition: all 0.1s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill:hover {
  color: var(--text);
  border-color: #3f3f45;
}

.filter-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Modal styling */
.modal {
  animation: modalEnter 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cart drawer */
.cart-drawer {
  box-shadow: -25px 0 50px -12px rgb(0 0 0 / 0.5);
}

/* Form inputs - tactical */
.input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159, 31, 43, 0.1);
}

.input::placeholder {
  color: #666;
}

/* Select */
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a9aa0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

/* Toast */
.toast {
  animation: slideUp 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ */
.faq-question {
  cursor: pointer;
  transition: color 0.1s ease;
}

.faq-question:hover {
  color: var(--amber);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 200px;
  padding-top: 12px;
}

/* Gallery masonry feel */
.gallery-item {
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow: hidden;
}

.gallery-item:hover {
  transform: scale(1.015);
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Product option buttons */
.option-btn {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 3px;
  transition: all 0.1s ease;
  cursor: pointer;
}

.option-btn:hover {
  border-color: #4a4a52;
  color: var(--text);
}

.option-btn.active {
  border-color: var(--accent);
  background: rgba(159, 31, 43, 0.12);
  color: white;
}

/* Checkout steps */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Order confirmation */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confetti-fall 1.4s ease-out forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

/* Utility */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

/* Mobile nav */
.mobile-nav {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

/* Scrollbar (dark tactical) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: #3a3a40;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print styles for receipts */
@media print {
  .no-print {
    display: none !important;
  }
}