@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f5f3ef;
  --warm-gray: #8c8680;
  --light-border: #e8e4df;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageReveal 0.45s ease 0.1s forwards;
}

@keyframes pageReveal {
  to { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}
img.loaded { opacity: 1; }

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--white);
  animation: loaderFade 0.8s ease forwards;
}
.loader-bar-wrap {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--white);
  width: 0%;
  animation: loaderProgress 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loaderFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loaderProgress {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s ease;
  z-index: 500;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover { background: #333; }

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--light-border);
}
.navbar.solid {
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--light-border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s ease;
}
.navbar.scrolled .logo a, .navbar.solid .logo a { color: var(--black); }
.nav-links { display: flex; gap: 3rem; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.navbar.scrolled .nav-links a, .navbar.solid .nav-links a { color: var(--black); }
.nav-links a:hover { color: var(--warm-gray); }
.nav-icons { display: flex; gap: 1.5rem; align-items: center; }
.nav-icons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
  padding: 0;
}
.navbar.scrolled .nav-icons button, .navbar.solid .nav-icons button { color: var(--black); }
.nav-icons button:hover { color: var(--warm-gray); }
.cart-count {
  position: absolute;
  top: -7px;
  right: -10px;
  background: var(--black);
  color: var(--white);
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 50%;
  min-width: 16px;
  text-align: center;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
}
.navbar.scrolled .nav-hamburger, .navbar.solid .nav-hamburger { color: var(--black); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-nav-drawer.open { opacity: 1; visibility: visible; display: flex; }
.mobile-nav-drawer a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-nav-drawer a:hover { color: var(--white); }

.hero { position: relative; height: 100svh; overflow: hidden; }
.hero-slider { position: relative; height: 100%; }
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.slide.active img { transform: scale(1); }
.slide-content {
  position: absolute;
  bottom: 12%;
  left: 8%;
  color: var(--white);
  max-width: 460px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}
.slide.active .slide-content { opacity: 1; transform: translateY(0); }
.slide-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.slide-content p {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0.85;
}
.slide-content-right {
  left: auto;
  right: 8%;
  text-align: right;
}
.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  z-index: 10;
}
.dot {
  width: 28px;
  height: 28px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
  position: relative;
  z-index: 2;
}
.dot.active::before { background: var(--white); }
.dot svg {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  transform: rotate(-90deg);
}
.dot svg circle {
  fill: none;
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.5;
  stroke-dasharray: 75.4;
  stroke-dashoffset: 75.4;
  stroke-linecap: round;
}
.dot.animating svg circle { stroke: var(--white); }

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--black); color: var(--white); }
.btn-outline {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: transparent;
  color: var(--black);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.search-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10,10,10,0.92);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
}
.search-modal.active { display: flex; }
.search-modal-content { width: 90%; max-width: 560px; }
.search-modal-content input {
  width: 100%;
  padding: 1rem 0;
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 300;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  outline: none;
  letter-spacing: 0.04em;
}
.search-modal-content input::placeholder { color: rgba(255,255,255,0.3); }
.search-results {
  background: var(--white);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--light-border);
  transition: background 0.2s ease;
}
.search-result-item:hover { background: var(--cream); }
.search-result-item img { width: 48px; height: 48px; object-fit: cover; }
.search-result-title { font-size: 0.85rem; font-weight: 500; }
.search-result-price { color: var(--warm-gray); font-size: 0.8rem; margin-top: 0.2rem; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--light-border);
  z-index: 1500;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.close-cart {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--black);
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.close-cart:hover { color: var(--warm-gray); }
.cart-items { flex: 1; overflow-y: auto; padding: 1.25rem 1.75rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--light-border);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; letter-spacing: 0.03em; }
.cart-item-price { color: var(--warm-gray); font-size: 0.8rem; }
.cart-item-quantity { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.cart-item-quantity button {
  background: var(--cream);
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.cart-item-quantity button:hover { background: var(--light-border); }
.remove-item {
  background: none !important;
  color: var(--warm-gray);
  font-size: 0.75rem !important;
  margin-left: auto;
  transition: color 0.2s ease !important;
}
.remove-item:hover { color: var(--black) !important; }
.cart-footer { padding: 1.25rem 1.75rem; border-top: 1px solid var(--light-border); }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.checkout-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.checkout-btn:hover { background: #333; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream);
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-img { transform: scale(1.04); }
.product-card-info { padding: 1rem 0 0.5rem; }
.product-card-title {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.product-card-price {
  color: var(--warm-gray);
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.product-card button {
  width: 100%;
  padding: 0.7rem;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.product-card button:hover { background: #333; }

.featured-section { padding: 5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--warm-gray);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.editorial-strip { padding: 5rem 0; overflow: hidden; }
.editorial-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .editorial-strip-inner { grid-template-columns: 1fr 1fr; }
}
.editorial-image { position: relative; overflow: hidden; }
.editorial-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.editorial-image:hover img { transform: scale(1.04); }
.editorial-copy {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .editorial-copy { padding: 5rem; }
}
.editorial-copy .overline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.editorial-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.editorial-copy p {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.editorial-copy .btn-primary { background: var(--white); color: var(--black); align-self: flex-start; }
.editorial-copy .btn-primary:hover { background: rgba(255,255,255,0.85); }

.logbook-peek {
  padding: 5rem 0;
  background: var(--cream);
}
.logbook-peek-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.logbook-peek-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .logbook-peek-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .logbook-peek-grid { grid-template-columns: repeat(4, 1fr); }
}
.logbook-peek-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--light-border);
}
.logbook-peek-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}
.logbook-peek-item img.loaded { opacity: 1; }
.logbook-peek-item:hover img { transform: scale(1.04); }

.newsletter-section {
  padding: 5rem 0;
  background: #1c1917;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(140,134,128,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .newsletter-inner { grid-template-columns: 1fr 1fr; gap: 6rem; }
}
.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.newsletter-text p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  line-height: 1.8;
  max-width: 320px;
}
.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-fields input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s ease;
}
.newsletter-fields input:focus { border-color: rgba(255,255,255,0.3); }
.newsletter-fields input::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-fields button {
  padding: 1rem 1.5rem;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease;
  width: 100%;
}
@media (min-width: 768px) {
  .newsletter-fields button { width: auto; align-self: flex-start; }
}
.newsletter-fields button:hover { background: var(--cream); }
.newsletter-message {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.newsletter-message.success { color: rgba(255,255,255,0.55); }
.newsletter-message.error { color: #f87171; }

footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
}
@media (min-width: 768px) {
  footer { padding: 4rem 0 2rem; }
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .footer-content { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
}
.footer-brand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-brand { display: block; }
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .footer-brand h3 { margin-bottom: 1rem; }
}
.footer-brand p { font-size: 0.78rem; line-height: 1.7; max-width: 280px; display: none; }
@media (min-width: 768px) {
  .footer-brand p { display: block; }
}
.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-nav-columns { display: contents; }
}
.footer-section h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-section a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.footer-section a:hover { color: var(--white); }
.social-links { display: flex; gap: 1rem; margin-top: 0; }
@media (min-width: 768px) { .social-links { margin-top: 1rem; } }
.social-links a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 0 !important;
  transition: border-color 0.2s ease, color 0.2s ease !important;
  color: rgba(255,255,255,0.55) !important;
  text-decoration: none !important;
}
.social-links a:hover { border-color: var(--white) !important; color: var(--white) !important; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer-bottom { padding: 2rem 24px 0; }
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.cart-notification {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 1.75rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.cart-notification.show { opacity: 1; transform: translateY(0); }

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--warm-gray);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav-drawer { display: flex; }
  .slide-content h1 { font-size: 2.8rem; }
  .slide-content-right { right: auto; left: 8%; text-align: left; }
  .cart-sidebar { width: 100%; right: -100%; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-modal {
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 24px 1rem; /* Added a little bottom padding for breathing room */
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column; /* Stack them on mobile */
  justify-content: center; /* Center everything */
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom { 
    padding: 2rem 24px 1rem; 
    flex-direction: row; /* Put them side-by-side on desktop */
    gap: 2rem; /* Space them out nicely in the center */
  }
}

.footer-bottom p { 
  font-size: 0.72rem; 
  color: rgba(255,255,255,0.35); 
  margin: 0; /* Ensures clean centering */
}

/* =========================================
   HARDWARE ACCELERATION & SMOOTHNESS TWEAKS
   ========================================= */

/* 1. Optimize all lazy-loaded images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity; /* Tells the GPU to prepare for an opacity change */
}

/* 2. Force GPU rendering on heavily animated elements */
.slide img,
.product-card,
.product-card-img,
.editorial-image img,
.logbook-peek-item img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0); /* Forces the element onto its own 3D GPU layer */
  -webkit-font-smoothing: subpixel-antialiased;
}

/* 3. Tell the browser what exactly is going to animate on hover */
.product-card:hover {
  will-change: transform;
}
.product-card-img {
  will-change: transform;
}

/* 4. Smooth out the scrolling experience for the whole page */
body {
  overscroll-behavior-y: none; /* Prevents the "bounce" effect on Macs/iPhones which can feel laggy */
}

/* 1. Optimize all lazy-loaded images */
img[loading="lazy"] {
  will-change: opacity; 
  /* We removed 'opacity: 0' from here because you already have it at the top of your file! */
}

/* Force the loaded class to ALWAYS win */
img.loaded, 
img[loading="lazy"].loaded {
  opacity: 1 !important; 
}

/* =========================================
   PERFORMANCE & THEME TWEAKS
   ========================================= */

/* 1. Custom Brand Text Highlight */
::selection {
  background: var(--black);
  color: var(--white);
}
::-moz-selection {
  background: var(--black);
  color: var(--white);
}

/* 2. Prevent scroll lag/bounce on mobile and Mac */
body {
  overscroll-behavior-y: none;
}

/* 3. Hardware Acceleration for buttery smooth hover effects */
.product-card,
.product-card-img,
.editorial-image img,
.logbook-peek-item img,
.slide img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

/* 4. Tell GPU to prep animations before they happen */
.product-card:hover {
  will-change: transform;
}
.product-card-img {
  will-change: transform;
}

/* 5. Foolproof Lazy Loading (Ensures images appear) */
img[loading="lazy"] {
  will-change: opacity;
}
img.loaded, 
img[loading="lazy"].loaded {
  opacity: 1 !important; 
}

/* =========================================
   OUT OF STOCK UI
   ========================================= */
.out-of-stock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.85);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 2px;
}

.product-card.is-out-of-stock .product-card-img {
  opacity: 0.5;
  filter: grayscale(100%);
}

.product-card.is-out-of-stock:hover {
  transform: none; /* Disables the hover float effect */
}

.product-card.is-out-of-stock button {
  background: var(--light-border) !important;
  color: var(--warm-gray) !important;
  cursor: not-allowed;
}

/* Custom Brand Text Highlight */
::selection {
  background: var(--black);
  color: var(--white);
}

::-moz-selection {
  background: var(--black);
  color: var(--white);
}

/* Fix hero image face cutoff on desktop */
@media (min-width: 768px) {
  .slide img {
    /* This shifts the focal point of the crop up towards the faces */
    object-position: center 20%; 
  }
}