/* ===========================
   MOONROCK STUDIO — styles.css
   Fonts: Apercu Mono (UI), Apercu Regular (descriptions)
   =========================== */

@font-face {
  font-family: 'Apercu Mono';
  src: url('Apercu_mono_bold_font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Apercu';
  src: url('Apercu_regular_font.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

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

:root {
  --pink: #FF48A3;
  --pink-dark: #e6408f;
  --bg: #f5f2ee;
  --text: #1a1a1a;
  --text-muted: #777;
  --mono: 'Apercu Mono', monospace;
  --sans: 'Apercu', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   HEADER
   =========================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 2.5rem 2rem 1rem;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.site-logo {
  width: 190px;
  height: auto;
  position: relative;
  left: 3px;
}

.header-tag {
  font-size: 11px;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--pink);
  white-space: nowrap;
}

/* ===========================
   INTRO
   =========================== */

.intro {
  max-width: 520px;
  margin: 2rem auto 3.5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.intro p {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
}

/* ===========================
   PRODUCT GRID
   =========================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 18px;
  row-gap: 0;
  padding: 0 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  display: block;
  cursor: pointer;
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e4de;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0 3rem;
}

.product-type {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #000000;
}

.product-price {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #000000;
}

/* SOLD OUT state */
.product-card.sold-out .product-price {
  color: var(--text-muted);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
  background: #f0e8f0;
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: calc((4rem) / 11);
  align-items: center;
}

.about-img-wrap {
  grid-column: 2 / 6;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.about-text {
  grid-column: 6 / 12;
}

.about-img-wrap {
  flex-shrink: 0;
  width: calc((1100px - 4rem - 36px) / 3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 2;
  color: #555;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-bg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bg-mobile {
  display: none;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.35);
}

.footer-logo {
  width: 190px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.reach-out-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--pink);
  border-radius: 40px;
  width: 300px;
  text-align: center;
  padding: 14px 0;
  transition: background 0.2s ease;
}

.reach-out-btn:hover {
  background: var(--pink-dark);
}

/* ===========================
   DETAIL PAGE
   =========================== */

.detail-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  column-gap: 4rem;
  row-gap: 0;
  max-width: 1100px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
  align-items: start;
}

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-img-wrap {
  width: 100%;
  overflow: hidden;
}

.detail-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-info {
  padding-top: 0.5rem;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.detail-type {
  font-size: 15px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.detail-price {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.detail-description {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.4;
  color: #000000;
  margin-bottom: 2rem;
}

.buy-button-wrap {
  margin-bottom: 1.5rem;
  width: 100%;
}

.buy-button-wrap iframe {
  width: 100% !important;
}

.buy-button-wrap div {
  width: 100% !important;
}

.detail-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 1rem 0.5rem;
  }

  .intro {
    margin: 1.5rem auto 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 0.75rem 3rem;
    column-gap: 0;
  }

  .about-section {
    padding: 3rem 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .about-img-wrap {
    grid-column: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .about-text {
    grid-column: 1;
    padding-left: 0;
  }

  .site-footer {
    height: auto;
  }

  .footer-bg-desktop {
    display: none;
  }

  .footer-bg-mobile {
    display: block;
  }

  .footer-logo {
    width: 120px;
  }

  .detail-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
  }

  .buy-button-wrap {
    display: flex;
    justify-content: center;
  }

  .check-these-out {
    padding: 0 0.75rem;
    margin-bottom: 3rem;
  }

  .check-these-out-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ===========================
   CHECK THESE OUT
   =========================== */

.check-these-out {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.check-these-out-heading {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.check-these-out-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.check-these-out-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e4de;
}

.check-these-out-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   FOOTER LOGO LINK
   =========================== */

.footer-logo-link {
  display: block;
  line-height: 0;
}

/* ===========================
   DETAIL FULL WIDTH IMAGES
   =========================== */

.detail-full-images {
  max-width: 1100px;
  margin: 48px auto 5rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail-full-images .detail-img-wrap {
  width: 100%;
}

.detail-full-images .detail-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
