/* ========================================
   SUSPENDED - Premium Hat Store Theme
   ======================================== */

/* Base Styles */
:root {
  --brand-50: #fafafa;
  --brand-100: #f5f5f5;
  --brand-200: #e5e5e5;
  --brand-300: #d4d4d4;
  --brand-400: #a3a3a3;
  --brand-500: #737373;
  --brand-600: #525252;
  --brand-700: #404040;
  --brand-800: #262626;
  --brand-900: #171717;
  --brand-950: #0a0a0a;
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;
}

/* Focus States */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--brand-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
}

/* Selection */
::selection {
  background: var(--brand-900);
  color: white;
}

/* Typography Enhancements */
.font-display {
  font-family: 'Playfair Display', serif;
}

.text-balance {
  text-wrap: balance;
}

/* Smooth Image Loading */
img {
  transition: opacity var(--transition-normal) ease;
}

img.loaded {
  opacity: 1;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--brand-950);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal) ease;
}

.btn-primary:hover {
  background: var(--brand-800);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--brand-950);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--brand-300);
  transition: all var(--transition-normal) ease;
}

.btn-secondary:hover {
  border-color: var(--brand-950);
  background: var(--brand-50);
}

/* Card Hover Effects */
.product-card {
  transition: all var(--transition-normal) ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
  overflow: hidden;
}

.product-card .product-image img {
  transition: transform var(--transition-slow) ease;
}

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

/* Product Image Hover Swap */
.product-card .img-hover {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow) ease, visibility var(--transition-slow) ease;
}

.product-card:hover .img-hover {
  opacity: 1;
  visibility: visible;
}

.product-card:hover .img-default {
  opacity: 0;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: white;
  border: 1.5px solid var(--brand-200);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all var(--transition-fast) ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-950);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
}

.form-input::placeholder {
  color: var(--brand-400);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--brand-700);
}

/* Accordion Styles */
.accordion-item {
  border-bottom: 1px solid var(--brand-200);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition-fast) ease;
}

.accordion-trigger:hover {
  color: var(--brand-600);
}

.accordion-content {
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
}

.badge-new {
  background: var(--brand-950);
  color: white;
}

.badge-sale {
  background: #dc2626;
  color: white;
}

.badge-limited {
  background: linear-gradient(135deg, #d4af37, #f4e4bc);
  color: var(--brand-900);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brand-200), transparent);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--brand-100) 25%, var(--brand-200) 50%, var(--brand-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--transition-normal) ease;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--brand-950);
  color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: all var(--transition-normal) ease;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Quantity Selector */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--brand-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.qty-selector button {
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  transition: background var(--transition-fast) ease;
}

.qty-selector button:hover {
  background: var(--brand-100);
}

.qty-selector input {
  width: 3rem;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--brand-200);
  border-right: 1.5px solid var(--brand-200);
  font-weight: 500;
}

/* Price Styles */
.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-950);
}

.price-old {
  font-size: 1rem;
  color: var(--brand-400);
  text-decoration: line-through;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-500);
}

.breadcrumb a:hover {
  color: var(--brand-950);
}

.breadcrumb-separator {
  color: var(--brand-300);
}

/* Footer Styles */
.footer-link {
  color: var(--brand-500);
  transition: color var(--transition-fast) ease;
}

.footer-link:hover {
  color: white;
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Animation Utilities */
.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideUp var(--transition-normal) ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-scale-in {
  animation: scaleIn var(--transition-normal) ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover Underline Effect */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-normal) ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-dark {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-950));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Slider */
.hero-slider {
  height: calc(100vh - 80px);
  min-height: 500px;
  width: 100%;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-slider {
    height: calc(100vh - 96px);
  }
}

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}