/*
Theme Name: FAFS - Fallen Angels Forgotten Souls
Theme URI: https://example.com/fafs
Author: Antigravity Assistant
Description: A Brutalist Luxury streetwear theme featuring monochromatic design, clinical typography, and atmospheric contrasts.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fafs-theme
*/

:root {
  --bg-dark: #0a0a0a;
  --bg-light: #ffffff;
  --bg-grey: #f4f4f4;
  --border-color: #e5e5e5;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-grey: #666666;
  --font-main: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* Hide old dynamic background glows */
.bg-glow {
  display: none;
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.fafs-logo-img {
  max-width: 30px;
  height: 20px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  transition: var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-light);
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.cart-btn {
  color: var(--text-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* =========================================
   HERO / HOOK
   ========================================= */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-logo-large {
  max-width: 400px;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 1rem 3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.hero-btn:hover {
  background: #cccccc;
}

/* =========================================
   MASCOTS SHOWCASE
   ========================================= */
.mascots-showcase {
  background-color: var(--bg-dark);
  padding: 6rem 2rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mascots-header {
  text-align: center;
  margin-bottom: 4rem;
}

.mascots-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mascots-subtitle {
  font-size: 0.85rem;
  color: var(--text-grey);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mascots-grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 2rem auto;
}

.mascot-card {
  background: #111;
  position: relative;
  overflow: hidden;
}

.mascot-media {
  width: 100%;
  display: block;
  object-fit: cover;
  background: var(--bg-dark);
}

.mascot-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.mascot-info h3 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.mascot-info span {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mascots-full {
  max-width: 1400px;
  margin: 0 auto;
  background: #111;
  overflow: hidden;
}

.mascot-media-full {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* =========================================
   SHOP / CLINICAL SHIFT
   ========================================= */
.shop-container {
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  padding-top: 4rem;
}

.controls-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  display: none;
  /* Hide search box to keep it brutalist */
}

.filter-tabs {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.filter-tab {
  color: var(--text-grey);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

.filter-tab:hover {
  color: var(--text-dark);
}

.filter-tab.active {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products-grid-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.results-meta {
  display: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
}

.product-card {
  cursor: pointer;
}

.product-image-wrapper {
  background: var(--bg-grey);
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform var(--transition-smooth);
}

.product-image.img-back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-image.img-back {
  opacity: 1;
}

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

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-grey);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================================
   MODAL / INSIDE BOX
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-light);
  color: var(--text-dark);
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  position: relative;
  display: flex;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  color: var(--text-dark);
}

.modal-close-btn svg {
  width: 28px;
  height: 28px;
}

.modal-card {
  display: flex;
  width: 100%;
  height: 100%;
}

.modal-gallery {
  flex: 0 0 60%;
  background: var(--bg-grey);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.modal-details {
  flex: 0 0 40%;
  padding: 4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-details-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modal-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--text-grey);
}

.modal-title-clean {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal-price-clean {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.modal-desc-clean {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-grey);
  margin-bottom: 2rem;
}

.modal-sizes-section-clean {
  margin-bottom: 2rem;
}

.modal-label-clean {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.fafs-size-selector-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fafs-size-box-clean {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fafs-size-box-clean:hover,
.fafs-size-box-clean.active {
  background: var(--text-dark);
  color: var(--bg-light);
  border-color: var(--text-dark);
}

.btn-clean-black {
  background: var(--text-dark);
  color: var(--bg-light);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
  width: 100%;
  transition: opacity 0.2s;
}

.btn-clean-black:hover {
  opacity: 0.8;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
  background: var(--bg-dark);
  color: var(--text-grey);
  padding: 4rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

/* =========================================
   TOASTS
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease forwards;
}

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

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .modal-container {
    width: 95%;
    height: 95vh;
  }

  .modal-card {
    flex-direction: column;
    overflow-y: auto;
  }

  .modal-gallery {
    flex: none;
    min-height: 55vh;
    overflow-y: visible;
  }

  .modal-details {
    flex: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.5rem 1rem;
    gap: 1rem;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-image-wrapper {
    margin-bottom: 1rem;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-container {
    width: 100%;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }

  .modal-gallery {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: auto;
    background: var(--bg-grey);
    padding: 2rem 1.5rem;
  }

  .modal-gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 2rem;
  }

  .modal-details {
    padding: 1.5rem;
  }

  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .modal-close-btn svg {
    width: 20px;
    height: 20px;
  }

  .hero-logo-large {
    max-width: 80vw;
  }

  .main-footer {
    padding: 3rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}