/* The Freediving Nautilus — site styles */

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

body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Jost', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Top bar: search, account info, login, cart */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a7a7a;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 8px;
  width: 220px;
  background: none;
}

.search svg { width: 15px; height: 15px; flex-shrink: 0; }

.search input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a7a7a;
  width: 100%;
  background: none;
}

.account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-meta {
  text-align: right;
  font-size: 11px;
  line-height: 1.6;
  color: #4a4a4a;
}

.login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
}

.login .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Logo + brand name */

.brand {
  text-align: center;
  padding: 4px 0 28px;
  text-decoration: none;
  display: block;
}

.brand .shell {
  width: 74px;
  height: 74px;
  margin: 0 auto 6px;
}

.brand h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 40px;
  color: #2b2b2b;
  letter-spacing: 0.3px;
}

/* Primary nav */

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 20px 0 28px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.primary-nav a {
  text-decoration: none;
  color: #3a3a3a;
}

.primary-nav a:hover,
.primary-nav a.active { color: #000; }

/* Section label — hairline rules either side of a heading */

.section-label {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 40px;
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: #d8d8d8;
}

.section-label span {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #6a86a3;
  white-space: nowrap;
}

/* Hero photo carousel */

.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 8;
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 40px 64px;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-photo .caption {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s ease;
}

.hero-dots span.active { background: #fff; }

/* Featured products grid */

.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}

.product-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.product-pair {
  display: flex;
  gap: 4px;
}

.fin {
  width: 150px;
  height: 420px;
  border-radius: 70px 70px 20px 20px / 90px 90px 20px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ececec;
}

.fin-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fin-face.back { opacity: 0; }

.fin:hover .fin-face.front { opacity: 0; }
.fin:hover .fin-face.back { opacity: 1; }

.fin-name {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #3a3a3a;
  text-decoration: none;
  display: block;
}

.fin-name .price {
  color: #9a9a9a;
  font-size: 12px;
  margin-top: 2px;
}

/* Footer */

.site-footer {
  border-top: 1px solid #ececec;
  padding: 40px 48px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9a9a9a;
}

.site-footer a {
  text-decoration: none;
  color: #9a9a9a;
  margin: 0 12px;
}

.site-footer a:hover { color: #1a1a1a; }

@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; padding: 20px 24px 0; gap: 12px; }
  .account-meta { display: none; }
  .primary-nav { gap: 28px; font-size: 12px; }
  .brand h1 { font-size: 28px; }
  .section-label { padding: 16px 24px 28px; }
  .section-label span { font-size: 12px; letter-spacing: 1.5px; }
  .products { padding: 40px 24px 60px; }
  .product-row { gap: 32px; }
  .fin { width: 110px; height: 310px; }
}
