/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fcfcfc;
  --color-fg: #020912;
  --color-button-bg: #020912;
  --color-button-text: #fcfcfc;
  --color-link: #1a0dab;
  --color-border: #e0e0e0;
  --color-sold-out: #8a8a8a;
  --font-body: "Anonymous Pro", monospace;
  --font-heading: "Figtree", sans-serif;
  --page-width: 1400px;
  --header-height: 64px;
}

@font-face {
  font-family: "Anonymous Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anonymous-pro-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Anonymous Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/anonymous-pro-bold.ttf") format("truetype");
}

@font-face {
  font-family: "Anonymous Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anonymous-pro-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Anonymous Pro";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/anonymous-pro-bold-italic.ttf") format("truetype");
}

@font-face {
  font-family: Figtree;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/figtree-medium.ttf") format("truetype");
}

html {
  /* --font-body-scale: 1.05 means 62.5% * 1.05 = 65.625% */
  font-size: 65.625%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-fg);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
  background-color: var(--color-fg);
  color: var(--color-bg);
  text-align: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.2rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.header__nav a {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  text-decoration: none;
  opacity: 0.7;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 1.4rem;
}

.header__actions a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header__actions svg {
  width: 22px;
  height: 22px;
}

.country-selector {
  font-size: 1.3rem;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  border-radius: 0;
  color: var(--color-fg);
  font-family: var(--font-body);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ===== Image with Text (side-by-side hero) ===== */
.image-with-text {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.2rem 2.4rem 3.2rem;
}

.image-with-text__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.image-with-text__media img {
  width: 100%;
  height: auto;
  display: block;
}

.image-with-text__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 3.2rem;
}

.image-with-text__heading {
  font-size: 4.2rem;
  font-weight: 500;
  margin-bottom: 2.4rem;
  line-height: 1.2;
}

/* ===== Rich Text Section ===== */
.rich-text-section {
  text-align: center;
  padding: 4rem 2rem 5.2rem;
}

.rich-text-section__heading {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.rich-text-section__text {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}

/* ===== Featured Collection ===== */
.featured-collection {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 3.2rem 5rem 3.6rem;
}

.featured-collection__heading {
  font-size: 2.4rem;
  margin-bottom: 2.4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.product-card:hover {
  text-decoration: none;
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  margin-bottom: 0;
}

.product-card__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.product-card:hover .product-card__image-wrapper img {
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background-color: var(--color-fg);
  color: var(--color-bg);
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  letter-spacing: 0.02em;
}

.product-card__info {
  padding: 1.2rem 0 0;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--color-fg);
}

.product-card__price {
  font-size: 1.4rem;
  color: var(--color-fg);
}

/* ===== Product Detail Page ===== */
.product-detail {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 8rem;
}

.product-gallery__main {
  margin-bottom: 1.2rem;
}

.product-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-fg);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding-top: 1rem;
}

.product-info__title {
  font-size: 3.2rem;
  margin-bottom: 1.6rem;
}

.product-info__price {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.product-info__badge {
  display: inline-block;
  background-color: var(--color-fg);
  color: var(--color-bg);
  font-size: 1.3rem;
  padding: 0.4rem 1.2rem;
  margin-bottom: 2.4rem;
}

.product-info__description {
  font-size: 1.5rem;
  line-height: 1.7;
}

.product-info__description p {
  margin-bottom: 1rem;
}

.product-info__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 990px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 2rem 2.4rem 4rem;
    gap: 2.4rem;
  }

  .product-gallery {
    position: static;
  }
}

/* ===== Page Content ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2.4rem 6rem;
  flex: 1;
}

.page-content h1 {
  font-size: 3.2rem;
  margin-bottom: 3.2rem;
  text-align: center;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.faq-item {}

.faq-item__question {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.faq-item__answer {
  font-size: 1.5rem;
  line-height: 1.7;
}

/* ===== Contact Page ===== */
.contact-page {
  flex: 1;
}

.contact-page__inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem 2.4rem 3.6rem;
}

.contact-page__title {
  font-size: 3.2rem;
  margin-bottom: 0;
}

/* ===== Contact Form ===== */
.contact-form {
  margin-top: 0;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.contact-form__field {
  position: relative;
  margin-bottom: 1.6rem;
}

.contact-form__input {
  width: 100%;
  padding: 2.4rem 1.2rem 0.8rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1.5rem;
  background-color: var(--color-bg);
  color: var(--color-fg);
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 0;
  line-height: 1.6;
}

.contact-form__input::placeholder {
  color: transparent;
}

.contact-form__label {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-fg);
  opacity: 0.7;
  pointer-events: none;
  transition: all 0.15s ease;
}

.contact-form__textarea + .contact-form__label {
  top: 1.6rem;
  transform: none;
}

.contact-form__input:focus + .contact-form__label,
.contact-form__input:not(:placeholder-shown) + .contact-form__label {
  top: 0.6rem;
  transform: none;
  font-size: 1.1rem;
  opacity: 0.5;
}

.contact-form__input:focus {
  border-color: var(--color-fg);
  outline: none;
}

.contact-form__submit {
  margin-top: 0.4rem;
}

@media (max-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-size: 1.5rem;
  padding: 1.2rem 3.2rem;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: var(--color-bg);
  color: var(--color-fg);
  border-color: var(--color-fg);
}

/* ===== Collection Page ===== */
.collection-header {
  text-align: center;
  padding: 4rem 2.4rem 2rem;
}

.collection-header h1 {
  font-size: 3.2rem;
}

.collection-grid {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 2rem 2.4rem 6rem;
}

.collection-grid .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-fg);
  color: var(--color-bg);
  margin-top: auto;
}

.footer__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 4rem 2.4rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.footer__links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer__links-group h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer__links-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links-group a {
  color: var(--color-bg);
  font-size: 1.4rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer__links-group a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(252, 252, 252, 0.15);
  padding-top: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer__copyright {
  font-size: 1.3rem;
  opacity: 0.7;
}

.footer__country-selector {
  font-size: 1.3rem;
  background: transparent;
  border: 1px solid rgba(252, 252, 252, 0.3);
  padding: 0.4rem 0.8rem;
  color: var(--color-bg);
  font-family: var(--font-body);
  border-radius: 0;
}

.footer__country-selector option {
  color: var(--color-fg);
  background: var(--color-bg);
}

/* ===== FAQ answer paragraphs & images ===== */
.faq-item__answer p {
  margin-bottom: 1rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__image {
  text-align: center;
  margin-top: 1.6rem;
}

.faq-item__image img {
  max-width: 450px;
  height: auto;
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 990px) {
  .image-with-text__heading {
    font-size: 3.2rem;
  }

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

  .featured-collection {
    padding: 2.4rem 2.4rem 2.7rem;
  }

  .footer__top {
    flex-direction: column;
    gap: 2.4rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 56%;
  }

  .header__nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header__inner {
    padding: 1rem 1.6rem;
  }

  .image-with-text__grid {
    grid-template-columns: 1fr;
  }

  .image-with-text__heading {
    font-size: 2.6rem;
  }

  .image-with-text__content {
    padding: 2.4rem 1.6rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .featured-collection__heading {
    font-size: 2.2rem;
  }

  .rich-text-section__heading {
    font-size: 2.4rem;
  }

  .page-content {
    padding: 3rem 1.6rem 4rem;
  }

  .page-content h1 {
    font-size: 2.6rem;
  }

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

  /* Mobile nav open */
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 2.4rem;
    gap: 1.6rem;
  }
}
