/* ============================================
   GHOUL — Design System
   Tokens: #f9f8fc | #db3122 | #1f1e2d
   Fonts: Montserrat, Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* --- Tokens --- */
:root {
  --cream:    #f9f8fc;
  --red:      #db3122;
  --dark:     #1f1e2d;
  --white:    #ffffff;
  --ph:       #e8e7ec;
  --gray-mid: #8c8b95;
  --gray-lt:  #b8b7c0;
  --gray-sep: #dedade;
  --gray-inp: #d1d0d8;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-h: 56px;
  --max-w: 1440px;
  --gutter: 80px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--dark); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* --- Custom cursor --- */
*, *::before, *::after { cursor: none !important; }

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease;
}

.cursor-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(0);
  opacity: 1;
  animation: ripple-out 0.55s ease-out forwards;
}

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(4.5);
    opacity: 0;
  }
}

/* --- Placeholder image blocks --- */
.ph {
  background: var(--ph);
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--gray-sep);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--red); }
.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__actions svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 1.5; }
.nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav__icon svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 1.5; }
.nav__cart-count {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-left: -4px;
}
.nav--dark {
  background: var(--dark);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav--dark .nav__logo,
.nav--dark .nav__links a,
.nav--dark .nav__cart-count { color: var(--white); }
.nav--dark .nav__actions svg { stroke: var(--white); }
.nav--dark .nav__links a:hover { color: var(--red); }

/* page offset */
.page { padding-top: var(--nav-h); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.footer__brand p {
  font-size: 13px;
  color: var(--gray-lt);
  line-height: 1.7;
  max-width: 220px;
}
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 13px;
  color: var(--gray-lt);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  background: var(--dark);
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 32px;
  height: 48px;
  transition: background 0.2s, color 0.2s;
}
.btn--dark   { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: #2d2c3f; }
.btn--red    { background: var(--red); color: var(--white); }
.btn--red:hover { background: #c22b1f; }
.btn--outline { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn--full { width: 100%; }

/* ============================================
   INPUTS
   ============================================ */
.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-inp);
  background: var(--white);
  font-size: 13px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--dark); }
.input::placeholder { color: var(--gray-lt); }
.input-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  display: block;
  margin-bottom: 6px;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.auth-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.auth-modal__content {
  position: relative;
  background: var(--cream);
  padding: 40px;
  border-radius: 0;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  color: var(--dark);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-modal__close:hover { opacity: 1; }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-sep);
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

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

.auth-form {
  display: none;
}

.auth-form--active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .input {
  width: 100%;
}

/* Auth button in nav */
.auth-btn {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-btn:hover {
  opacity: 0.7;
}
