/* ============================================
   LOUDLUXE — Global Styles
   Bold. Colorful. Unapologetic.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --fuchsia: #ff2d8a;
  --electric-yellow: #ffe030;
  --royal-purple: #8b3dff;
  --hot-coral: #ff6b4a;
  --cream: #f5f0e8;
  --gray-dark: #1a1a1a;
  --gray-mid: #333;
  --gray-light: rgba(255,255,255,0.12);
  --gray-text: rgba(255,255,255,0.5);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-fuchsia { color: var(--fuchsia); }
.text-yellow { color: var(--electric-yellow); }
.text-purple { color: var(--royal-purple); }
.text-coral { color: var(--hot-coral); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--gray-text); }

/* ---- NAV ---- */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: var(--transition);
}

.logo span { color: var(--fuchsia); }
.logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fuchsia);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cart {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  background: var(--fuchsia);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: #e6267b;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 45, 138, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

.btn-yellow {
  background: var(--electric-yellow);
  color: var(--black);
}

.btn-yellow:hover {
  background: #f0d420;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 224, 48, 0.3);
}

.btn-coral {
  background: var(--hot-coral);
  color: var(--white);
}

.btn-coral:hover {
  background: #e85e3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 74, 0.35);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- PRODUCT CARD ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0;
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.product-card-image {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.product-card-image .product-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-image .product-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--electric-yellow);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

.product-card-info {
  padding: 20px;
}

.product-card-category {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-text);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fuchsia);
}

.product-card-sizes {
  font-size: 0.75rem;
  color: var(--gray-text);
}

/* ---- SECTIONS ---- */

section {
  padding: 100px 48px;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fuchsia);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 600px;
  line-height: 1.7;
}

/* ---- CONTAINER ---- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ---- FORMS ---- */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--fuchsia);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(255, 45, 138, 0.15);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.25);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ---- FOOTER ---- */

footer {
  padding: 60px 48px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand p {
  color: var(--gray-text);
  font-size: 0.9rem;
  max-width: 300px;
  margin-top: 8px;
}

.footer-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-text);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--fuchsia);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* ---- TOAST NOTIFICATION ---- */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--fuchsia);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  max-width: 360px;
}

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

.toast.success {
  border-left-color: #10b981;
}

/* ---- LOADING ---- */

.skeleton {
  background: linear-gradient(90deg, var(--gray-dark) 25%, rgba(255,255,255,0.06) 50%, var(--gray-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--fuchsia);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  footer {
    padding: 40px 20px 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
