/* Design tokens from Figma: Matias Reno's team library — landing frame 3311:304 */

:root {
  --cod-gray: #1a1a1a;
  --cod-gray-deep: #0a0a0a;
  --old-gold: #d4af37;
  --old-gold-20: rgba(212, 175, 55, 0.2);
  --old-gold-30: rgba(212, 175, 55, 0.3);
  --old-gold-40: rgba(212, 175, 55, 0.4);
  --new-orleans: #f1d592;
  --new-orleans-80: rgba(241, 213, 146, 0.8);
  --new-orleans-40: rgba(241, 213, 146, 0.4);
  --pale-sky: #6b7280;
  --white: #ffffff;
  --black: #000000;
  --btn-gradient: linear-gradient(171deg, #bf953f 0%, #fcf6ba 48%, #aa771c 100%);
  --btn-gradient-alt: linear-gradient(171deg, #bf953f 0%, #fcf6ba 50%, #aa771c 100%);
  --btn-gradient-139: linear-gradient(139deg, #bf953f 0%, #fcf6ba 50%, #aa771c 100%);
  --nav-bg: linear-gradient(90deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  --hero-title-gold: linear-gradient(90deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
  --content-max: 1536px;
  --page-pad-x: 208px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--cod-gray-deep);
  color: var(--new-orleans);
  min-height: 100vh;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  background: var(--cod-gray-deep);
  min-height: 100vh;
}

/* ——— Top header ——— */
.top-header {
  width: 100%;
  background: var(--cod-gray-deep);
  border-bottom: 1px solid var(--old-gold-30);
}

.top-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 16px;
}

.logo-area {
  width: 165px;
  height: 102px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-area img {
  width: 165px;
  height: 102px;
  object-fit: cover;
}

.search-bar-wrap {
  flex: 1;
  min-width: 200px;
  padding: 0 16px;
}

/* Same corner radius on field + icon (Figma search bar 20px) */
.search-bar {
  position: relative;
  align-self: stretch;
  border: 1px solid var(--old-gold-40);
  border-radius: 20px;
  background: var(--cod-gray);
}

.search-bar__input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  /* Room for 46px-wide search control + inset */
  padding: 9px 46px 10px 16px;
  margin: 0;
}

.search-bar__input::placeholder {
  color: var(--pale-sky);
}

.search-bar__btn {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.search-bar__btn img {
  width: 46px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.utility-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn--spaced {
  padding-left: 24px;
}

.cart-wrap {
  position: relative;
  padding-left: 24px;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--old-gold);
  color: var(--black);
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  padding: 2px 6px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}

.main-nav {
  width: 100%;
  background: var(--nav-bg);
  border-top: 1px solid var(--old-gold-20);
  padding: 0 var(--page-pad-x);
}

.main-nav__list {
  list-style: none;
  margin: 0 auto;
  max-width: var(--content-max);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.main-nav__list li {
  display: flex;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: var(--new-orleans);
  border-bottom: 2px solid transparent;
  margin: 0;
}

.main-nav__link--active {
  border-bottom-color: var(--old-gold);
}

.chev {
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23F1D592' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  width: 100%;
  min-height: 575px;
  border-bottom: 1px solid var(--old-gold-40);
  background: var(--black);
}

.hero__media {
  position: relative;
  width: 100%;
  min-height: 575px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 2;
}

.hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  pointer-events: auto;
}

.hero__title {
  margin: 0 0 24px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 25px 25px rgba(0, 0, 0, 0.15);
}

.hero__title-line {
  display: block;
}

.hero__title-line--white {
  color: var(--white);
}

.hero__title-line--gold {
  background: var(--hero-title-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 10px;
  background: var(--btn-gradient-alt);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  font-family: "Work Sans", Inter, sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--cod-gray);
}

.hero__cta:hover {
  filter: brightness(1.05);
}

/* ——— Featured ——— */
.featured {
  padding: 64px 16px;
}

.featured__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.featured__head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--old-gold-30);
  gap: 16px;
  flex-wrap: wrap;
}

.featured__heading {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.featured__vault-badge {
  background: var(--old-gold);
  color: var(--black);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-height: 456px;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.product-card {
  background: var(--cod-gray);
  border: 1px solid var(--old-gold-40);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 1;
  min-height: 200px;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 280px;
}

.product-card__body {
  border-top: 1px solid var(--old-gold-20);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.product-card__title {
  margin: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 20px;
  color: var(--new-orleans);
}

.product-card__price {
  margin: 0;
  text-align: center;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--white);
  padding-bottom: 12px;
}

.product-card__btn {
  width: 100%;
  padding: 8px 0;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.0545em;
  text-align: center;
}

.product-card__btn--dark-text {
  background: var(--btn-gradient);
  color: var(--cod-gray);
}

.product-card__btn--light-text {
  background: var(--btn-gradient-alt);
  color: var(--black);
}

.product-card__btn:hover {
  filter: brightness(1.06);
}

/* ——— Footer ——— */
.site-footer {
  width: 100%;
  background: var(--cod-gray);
  border-top: 2px solid var(--old-gold);
  padding: 23px var(--page-pad-x) 48px;
}

.site-footer__inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  min-height: 241px;
}

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main-nav {
    padding: 0 16px;
  }
}

.footer-heading {
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--old-gold-30);
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.1em;
  color: var(--old-gold);
}

.footer-heading--caps {
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  line-height: 20px;
  color: var(--new-orleans-80);
}

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

.footer-col--sell {
  padding-bottom: 78px;
}

.footer-copy {
  margin: 0 0 16px;
  padding-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--new-orleans-80);
}

.footer-form {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-top: 0;
}

.footer-form__field {
  flex: 1;
  border: 1px solid var(--old-gold-40);
  border-radius: 20px;
  background: var(--cod-gray-deep);
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 72px 12px 16px;
}

.footer-form__field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
}

.footer-form__field input::placeholder {
  color: var(--pale-sky);
}

.footer-form__submit {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--btn-gradient-139);
}

.footer-form__submit img {
  width: 50px;
  height: auto;
  display: block;
}

.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 139px;
}

.footer-social {
  margin-bottom: 32px;
}

.footer-social img {
  margin-left: auto;
}

.footer-legal {
  margin: 0;
  max-width: 469px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 15px;
  letter-spacing: 0.0625em;
  text-align: right;
  color: var(--new-orleans-40);
}

.chat-widget {
  position: fixed;
  right: max(16px, calc((100vw - 1920px) / 2 + 16px));
  bottom: 32px;
  z-index: 50;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

.chat-widget:hover {
  transform: scale(1.03);
  transition: transform 0.15s ease;
}

@media (max-width: 768px) {
  .top-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar-wrap {
    padding: 16px 0;
    order: 3;
    width: 100%;
  }

  .utility-icons {
    justify-content: flex-end;
  }

  .hero {
    min-height: 420px;
  }

  .hero__media {
    min-height: 420px;
  }

  .featured__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col--social {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 48px;
  }

  .footer-legal {
    text-align: left;
  }

  .footer-social img {
    margin-left: 0;
  }
}
