/* ============================================================
   GOLF WANG — Shared Component Styles
   Nav, Menu, Search, Footer, Container
   ============================================================ */

/* === FONTS === */
@font-face { font-family: 'Arial Black'; src: url('../assets/ArialBlack.woff2') format('woff2'), url('../assets/ArialBlack.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arial'; src: url('../assets/ArialBold.woff2') format('woff2'), url('../assets/ArialBold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arial'; src: url('../assets/Arial.woff2') format('woff2'), url('../assets/Arial.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; color: #000; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
picture { display: contents; }
button { cursor: pointer; }

/* === CONTAINER === */
.site-inner { width: 100%; }

/* === NAV === */
nav {
  position: sticky; top: 0; z-index: 100; background: #fff;
  height: 60px; will-change: transform;
}
nav .site-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 100%;
}
.nav-logo img { height: 24px; width: 70px; display: block; }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-actions a,
.nav-actions button {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 18px; font-weight: 900;
  letter-spacing: 1.08px; color: #000; background: none; border: none;
  transition: color 0.2s;
}
.nav-actions a:hover,
.nav-actions button:hover { color: #FDDA24; }

/* === MENU OVERLAY === */
.menu-overlay {
  position: fixed; inset: 0; background: #fff; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto; will-change: opacity;
}
.menu-overlay.active { opacity: 1; pointer-events: all; }
.menu-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 30px; height: 60px;
}
.menu-top-logo img { height: 24px; width: 70px; display: block; }
.menu-close {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 18px; font-weight: 900;
  letter-spacing: 1.08px; background: none; border: none; color: #000;
  transition: color 0.2s;
}
.menu-close:hover { color: #FDDA24; }
.menu-body {
  display: flex; padding: 30px 20px 50px;
}
.menu-col { flex: 1; }
.menu-col-label {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 12px; font-weight: 900;
  color: #000; margin-bottom: 20px;
}
.menu-col-links {
  display: flex; flex-direction: column; gap: 6px;
}
.menu-col a {
  display: block; font-family: 'Arial Black', Arial, sans-serif;
  font-size: 28px; font-weight: 900; color: #000;
  text-transform: uppercase; line-height: 30px; transition: color 0.2s;
}
.menu-col a:hover { color: #FDDA24; }
.menu-col-explore .menu-col-links { gap: 4px; }
.menu-support .menu-col-links { gap: 6px; }
.menu-support a {
  font-size: 28px !important; line-height: 30px !important; color: #000;
  transition: color 0.2s;
}
.menu-support a:hover { color: #FDDA24; }
.menu-support-divider { display: none; }
.menu-support-copy { display: none; }
.menu-support-inner { display: block; }

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed; inset: 0; background: #fff; z-index: 250;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto; will-change: opacity;
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 30px; height: 60px;
}
.search-title {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase; color: #000;
}
.search-close {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  letter-spacing: 0.06em; background: none; border: none; color: #000;
  text-transform: uppercase; transition: color 0.2s;
}
.search-close:hover { color: #FDDA24; }
.search-input-area { padding: 30px 30px 0; }
.search-input {
  width: 100%; border: none; border-bottom: 2px solid #000; padding: 12px 0;
  font-family: 'Arial Black', Arial, sans-serif; font-size: 20px; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase; outline: none; background: transparent;
  color: #000;
}
.search-input::placeholder { color: #BABABA; }
.search-meta {
  display: flex; justify-content: flex-end; padding: 16px 30px 0;
}
.search-count {
  font-family: Arial, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: #000; text-transform: uppercase;
}
.search-results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 30px 30px 80px;
}
.search-card a { text-decoration: none; color: inherit; }
.search-card-img {
  background: #F5F5F5; aspect-ratio: 4/5; overflow: hidden;
}
.search-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.search-card-name {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 11px; font-weight: 900;
  letter-spacing: 0.04em; text-transform: uppercase; margin-top: 10px; color: #000;
}
.search-card-price {
  font-family: Arial, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: #000; margin-top: 4px;
}
.search-no-results {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; color: #000;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 40px 0;
  grid-column: 1 / -1;
}

/* === CURRENCY SELECTOR === */
.menu-currency-btn {
  display: block; font-family: 'Arial Black', Arial, sans-serif;
  font-size: 28px; font-weight: 900; line-height: 30px;
  color: #000; background: none; border: none; text-transform: uppercase;
  text-align: left; transition: color 0.2s;
}
@media (hover: hover) { .menu-currency-btn:hover { color: #FDDA24; } }
.menu-support-right { display: none; }

/* === CURRENCY MODAL === */
.currency-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  will-change: opacity;
}
.currency-overlay.active { opacity: 1; pointer-events: all; }
.currency-modal {
  background: #fff; width: 360px; max-width: calc(100% - 32px); padding: 28px 24px;
}
.currency-modal-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.currency-modal-title {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 18px; font-weight: 900; color: #000;
}
.currency-modal-close {
  font-size: 28px; line-height: 1; background: none; border: none; color: #000;
  transition: color 0.2s;
}
@media (hover: hover) { .currency-modal-close:hover { color: #FDDA24; } }
.currency-modal-body { margin-bottom: 28px; }
.currency-modal-label {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 11px; font-weight: 900;
  color: #000; letter-spacing: 0.06em; margin-bottom: 10px;
}
.currency-select {
  width: 100%; padding: 12px 0; border: none; border-bottom: 2px solid #000;
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  color: #000; background: transparent; outline: none; appearance: none;
  -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.currency-save {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  color: #BABABA; background: none; border: none; letter-spacing: 0.04em;
  transition: color 0.2s;
}
@media (hover: hover) { .currency-save:hover { color: #000; } }

/* === STICKY FOOTER (pushes footer to bottom on short pages) === */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > *:not(nav):not(footer):not(.menu-overlay):not(.search-overlay) { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* === FOOTER === */
footer { background: #fff; }
footer .site-inner { padding: 50px 20px 20px; }
.footer-divider { display: none; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-links { display: flex; flex: 1; gap: 48px; }
.footer-links a {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  line-height: 12px; color: #000; text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.footer-links a:hover { color: #FDDA24; }
.footer-copy {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 14px; font-weight: 900;
  color: #000; flex: 1; text-align: right; line-height: 0; white-space: nowrap;
}
.footer-copy span { line-height: normal; }

/* === RESPONSIVE: TABLET LANDSCAPE === */
@media (max-width: 1200px) {
  .nav-actions { gap: 24px; }
  .footer-links { gap: 32px; }
}

/* === RESPONSIVE: TABLET === */
@media (max-width: 900px) {
  nav { height: 54px; }
  nav .site-inner { padding: 0 20px; }
  .nav-logo img { height: 22px; width: 64px; }
  .nav-actions { gap: 20px; }
  .nav-actions a, .nav-actions button { font-size: 16px; letter-spacing: 0.8px; }
  .menu-top { height: 54px; padding: 0 20px; }
  .menu-col a { font-size: 24px; line-height: 26px; }
  .search-top { padding: 0 20px; height: 54px; }
  .search-results { grid-template-columns: repeat(3, 1fr); }
  footer .site-inner { padding: 50px 20px 24px; }
  .footer-links { gap: 28px; }
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 12px; }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 768px) {
  nav { height: 46px; }
  nav .site-inner { padding: 0 16px; }
  .nav-actions .nav-search-link { display: none; }
  .nav-actions { gap: 16px; }
  .nav-actions button, .nav-actions a { font-size: 16px; letter-spacing: normal; text-transform: none; }
  .menu-top { padding: 0 16px; height: 46px; }
  .menu-top-logo img { height: 22px; width: 64px; }
  .menu-close { font-size: 16px; letter-spacing: normal; text-transform: none; }
  .menu-body { flex-direction: column; padding: 24px 10px; }
  .menu-col { flex: none; }
  .menu-col-label { font-size: 12px; margin-bottom: 15px; }
  .menu-col-explore .menu-col-label { margin-bottom: 10px; }
  .menu-col + .menu-col { margin-top: 30px; }
  .menu-col a { font-size: 22px; line-height: 22px; letter-spacing: 0.44px; }
  .menu-support { margin-top: 30px; }
  .menu-support .menu-col-label { display: none; }
  .menu-support-divider { display: block; height: 1px; background: #D3D3D3; width: 100%; margin-bottom: 6px; }
  .menu-support-inner { display: flex; justify-content: space-between; align-items: flex-end; }
  .menu-support .menu-col-links { flex: 1; }
  .menu-support a { font-size: 12px !important; line-height: 12px !important; text-transform: uppercase; }
  .menu-support-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; flex: 1; }
  .menu-support-copy { display: block; font-family: 'Arial Black', Arial, sans-serif; font-size: 8px; font-weight: 900; text-align: right; }
  .menu-currency-btn { font-size: 12px !important; line-height: 12px !important; text-transform: uppercase; }
  .search-top { padding: 0 16px; height: 46px; }
  .search-input-area { padding: 24px 16px 0; }
  .search-input { font-size: 16px; }
  .search-meta { padding: 12px 16px 0; }
  .search-results { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 16px 60px; }
  footer .site-inner { padding: 100px 10px 24px 10px; }
  .footer-divider { display: block; height: 1px; background: #D3D3D3; width: 100%; margin-bottom: 6px; }
  .footer-row { flex-direction: row; gap: 6px; }
  .footer-links { flex-direction: column; gap: 6px; flex: 1; }
  .footer-links a { font-size: 12px; line-height: 12px; }
  .footer-copy { font-size: 8px; flex: 1; }
}
