/* ============================================================
   Baisseur — Stylesheet
   ============================================================ */

:root {
  --color-bg: #faf8f5;
  --color-text: #141414;
  --color-muted: #666666;
  --color-border: #e5e2dc;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Alex Brush", cursive;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3.6px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-muted);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-light {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-light:hover {
  opacity: 0.85;
}

.btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-dark:hover {
  opacity: 0.85;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-white);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn[disabled] {
  background-color: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 1;
}

.btn[disabled]:hover {
  opacity: 1;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-solid,
.nav--solid {
  background-color: rgba(250, 248, 245, 0.95);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav__logo {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .nav__logo {
    font-size: 40px;
  }
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.nav--on-dark .nav__links a {
  color: rgba(255, 255, 255, 0.85);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav--on-dark .nav__links a:hover {
  color: var(--color-white);
}

.nav--on-dark .nav__logo {
  color: var(--color-white);
}

.nav--on-dark.nav--solid .nav__logo {
  color: var(--color-text);
}

.nav--on-dark.nav--solid .nav__links a {
  color: var(--color-muted);
}

.nav--on-dark.nav--solid .nav__links a:hover {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__image,
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
}

.hero__eyebrow {
  position: absolute;
  top: 80px;
  left: 24px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero__right {
  position: absolute;
  right: 5%;
  top: 100px;
  bottom: 60px;
  z-index: 10;
  max-width: 420px;
  width: 36%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: 34px;
  }
}

@media (min-width: 1024px) {
  .hero__headline {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .hero__right {
    right: auto;
    left: 24px;
    width: calc(100% - 48px);
    top: auto;
    bottom: 60px;
    height: auto;
  }
}

/* ------------------------------------------------------------
   Section headers
   ------------------------------------------------------------ */

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section__header {
  margin-bottom: 48px;
}

.section__header .eyebrow {
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section__title {
    font-size: 44px;
  }
}

.section__title em {
  font-style: italic;
}

.section__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Product grid / cards
   ------------------------------------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: block;
  position: relative;
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  background-color: #f1efe9;
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.04);
}

.product-card__quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-black);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.product-card__era {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(20, 20, 20, 0.75);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-card__sold {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-card.is-sold .product-card__image-wrap img {
  opacity: 0.45;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 14px;
  color: var(--color-muted);
}

/* ------------------------------------------------------------
   Story section
   ------------------------------------------------------------ */

/* Our Story layout */
.story-layout {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .story-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.story-layout__text p {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.story-layout__text p:last-child {
  margin-bottom: 0;
}

.story-layout__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 60%;
}

/* Why Baisseur layout */
.why-layout {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .why-layout {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.why-layout__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center center;
}

/* ------------------------------------------------------------
   Feature cards (Why Baisseur)
   ------------------------------------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
}

.feature__text {
  color: var(--color-muted);
  font-size: 15px;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */

.first-review {
  max-width: 600px;
}

.first-review__text {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq {
  max-width: 48rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text);
}

.faq-item__icon {
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 240px;
}

.faq-item__answer p {
  color: var(--color-muted);
  font-size: 15px;
  padding-bottom: 24px;
  max-width: 40rem;
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */

.cta {
  text-align: center;
  padding: 96px 0;
}

.cta__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta__title {
    font-size: 48px;
  }
}

.cta__text {
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 auto 32px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand-text {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .footer__brand-text {
    font-size: 48px;
  }
}

.footer__tagline {
  color: var(--color-muted);
  font-size: 14px;
  max-width: 24rem;
}

.footer__heading {
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-muted);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-muted);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

/* ------------------------------------------------------------
   Shop page
   ------------------------------------------------------------ */

.page-header {
  padding: 140px 0 48px;
  text-align: center;
}

.page-header__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: 56px;
  }
}

.page-header__text {
  color: var(--color-muted);
  max-width: 36rem;
  margin: 16px auto 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 0 48px;
}

.filter-bar button {
  background: none;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--color-muted);
  transition: all 0.2s ease;
}

.filter-bar button:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.filter-bar button.is-active {
  background-color: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

/* ------------------------------------------------------------
   Product detail page
   ------------------------------------------------------------ */

.product-detail {
  padding: 140px 0 96px;
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.product-detail__image {
  background-color: #f1efe9;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

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

.product-detail__era {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.product-detail__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .product-detail__title {
    font-size: 44px;
  }
}

.product-detail__price {
  font-size: 22px;
  margin-bottom: 24px;
}

.product-detail__description {
  color: var(--color-muted);
  margin-bottom: 32px;
}

.product-detail__meta {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
  margin-bottom: 32px;
}

.product-detail__meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}

.product-detail__meta-row span:first-child {
  color: var(--color-muted);
}

.product-detail__note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ------------------------------------------------------------
   Misc
   ------------------------------------------------------------ */

.text-center {
  text-align: center;
}

.mt-32 {
  margin-top: 32px;
}
