:root {
  --cream: #f9f7f4;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c8a96e;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  margin: 0;
  cursor: url('images/cursor_icon.png') 32 8, auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
  background-color: #e8e6e3;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1.2rem 0;
}

.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--ink) !important; }

.nav-link.active { color: var(--ink) !important; text-decoration: underline; }

.nav-link-ourstory { color: var(--ink) !important; font-weight: 700; }

/* Mobile hamburger: move "Our Story" to the bottom, under Bundle. */
@media (max-width: 767.98px) {
  .navbar-nav .nav-item:has(> .nav-link-ourstory) {
    order: 1;
  }
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler .toggler-open,
.navbar-toggler .toggler-close { font-size: 1.5rem; line-height: 1; }

.toggler-close { display: none; }
.navbar-toggler:not(.collapsed) .toggler-close { display: inline; }
.navbar-toggler:not(.collapsed) .toggler-open  { display: none; }

.nav-icon {
  color: var(--muted);
  font-size: 1.1rem;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-icon:hover { color: var(--ink); }

.nav-bag-wrap {
  position: relative;
  display: inline-flex;
}

.bag-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--ink);
  color: var(--cream);
  font-size: 0.6rem;
  font-weight: 500;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 2px;
  pointer-events: none;
}


/* ── Our Story ── */
/* Our Story — Hero */
.story-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.story-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 6rem;
  padding-bottom: 3rem;
}

.story-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: #f0ede8;
  letter-spacing: 0.02em;
  margin: 0;
}

.story-hero-2 {
  width: 100%;
  height: 520px;
  background-color: #222222;
  position: relative;
  overflow: hidden;
}

.scattered-photos-inner {
  position: absolute;
  inset: 0;
  margin: 0 8%;
}

.scattered-photo {
  position: absolute;
  background-color: #f0ede8;
  box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.scattered-photo::after {
  content: '';
  position: absolute;
  inset: 7px 7px 28px 7px;
  background-color: #3a3a3a;
  z-index: 0;
}

.scattered-photo-img {
  position: absolute;
  inset: 7px 7px 28px 7px;
  width: calc(100% - 14px);
  height: calc(100% - 35px);
  object-fit: cover; /* keeps aspect ratio; fills the frame */
  display: block;
  z-index: 1;
}

/* Desktop positions */
.sp-label {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #f0ede8;   /* match the polaroid frame so the label isn't visible at a glance */
  text-transform: uppercase;
  z-index: 2;
}

.sp1 { top: 8%;  left: 2%;  width: 180px; height: 210px; transform: rotate(-8deg); z-index: 2; }
.sp2 { top: 42%; left: 10%; width: 240px; height: 272px; transform: rotate(5deg);  z-index: 7; }
.sp3 { top: 5%;  left: 24%; width: 200px; height: 230px; transform: rotate(-3deg); z-index: 11; }
.sp4 { top: 42%; left: 38%; width: 220px; height: 250px; transform: none;          z-index: 0; }
.sp5 { top: 15%; left: 54%; width: 220px; height: 200px; transform: rotate(-6deg); z-index: 8; }
.sp6 { top: 32%; left: 65%; width: 231px; height: 258px; transform: rotate(4deg);  z-index: 10; }
.sp7 { top: 18%; left: 83%; width: 230px; height: 260px; transform: rotate(-5deg); z-index: 4; }

.story-cream-band {
  background-color: var(--cream);
  padding: 3rem 0;
}

.story-cream-text {
  background-color: var(--cream);
  padding: 4rem 2rem 2.5rem;
}

.story-stats {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid #d8d5d0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.stat-number-sm {
  font-size: 2rem;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b6560;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* Our Story — Split */
.story-split {
  display: flex;
  align-items: stretch;
}

.story-split-image {
  flex: 0 0 40%;
  min-height: 520px;
  background-color: #3a3a3a;
  position: relative;
  overflow: hidden;
}

.story-split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-split .story-text {
  flex: 1;
  padding: 4rem 5rem;
}

.story-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.story-image-placeholder {
  width: 400px;
  min-width: 400px;
  height: 400px;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: #f0ede8;
  letter-spacing: 0.02em;
}

.story-text p {
  font-size: 1rem;
  font-weight: 300;
  color: #b0aba4;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Footer ── */
.site-footer:hover {
  cursor: url('images/cursor_icon_white.png') 32 8, auto;
}

.site-footer {
  background-color: var(--ink);
  color: var(--cream);
  padding: 0.75rem 0 0.5rem;
  margin-top: 0;
}

.footer-logo {
  height: 64px;
  width: auto;
  mix-blend-mode: screen;
}

.footer-links {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 1.5rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(249,247,244,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-social a {
  color: rgba(249,247,244,0.6);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--cream); }

.legal-bar {
  background-color: #e8e6e3;
  padding: 0.65rem 0;
  margin-top: 4rem;
}

@media (max-width: 767.98px) {
  .page-index .legal-bar {
    margin-top: 2rem;
  }
}

.footer-legal {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 1.25rem;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
}

@media (max-width: 767.98px) {
  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
  }

  .footer-legal li {
    text-align: center;
  }

  .footer-legal a {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    white-space: normal;
  }
}

.footer-legal a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

.footer-legal a:hover { color: var(--ink) !important; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(249,247,244,0.4);
  margin: 0;
}

/* ── Panels ── */
/* Landing hero video */
.hero-video {
  padding: 0;
  background-color: #000;
}

.hero-video-player {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--ink);
  background-color: #000;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  /* Match the full-width product panels below */
  .hero-video-player {
    max-width: none;
    aspect-ratio: 9 / 12;   /* 25% shorter than the 9/16 desktop ratio */
  }
}

.panels {
  padding: 1.5rem 0 4rem;
  flex: 1;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .panels .container {
    max-width: 860px;
  }
}

.panel {
  border: 2px solid var(--ink);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--cream);
  display: block;
  transition: transform 0.3s ease;
}

.panel:hover img {
  transform: scale(1.04);
}

.panel-label {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background-color: var(--cream);
}

@media (max-width: 767.98px) {
  .panel-label {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .story-layout {
    flex-direction: column;
  }

  .story-split {
    flex-direction: column;
    margin-top: -1px; /* prevents mobile hairline seam under hero */
  }

  .story-split-image {
    flex: 0 0 auto;
    width: 100%;
    min-height: 300px;
  }

  .story-split .story-text {
    padding: 2.5rem 1.5rem;
  }

  .story-hero-title {
    font-size: 5rem;
  }

  .story-hero-overlay {
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .scattered-photos-inner { margin: 0; }

  .sp1 { top: 4%;  left: 0%;   width: 158px; height: 180px; }
  .sp2 { top: 40%; left: 6%;   width: 189px; height: 215px; }
  .sp3 { top: 18%; left: 25%;  width: 158px; height: 180px; }
  .sp4 { top: 62%; left: 26%;  width: 189px; height: 215px; transform: rotate(-2deg); z-index: 10; }
  .sp5 { top: 12%; left: 46%;  width: 158px; height: 180px; }
  .sp6 { top: 55%; left: 57%;  width: 189px; height: 215px; }
  .sp7 { top: 6%;  left: 68%;  width: 158px; height: 180px; transform: rotate(7deg); }

  .story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-item {
    border-right: 1px solid #d8d5d0;
    border-bottom: 1px solid #d8d5d0;
    padding: 1.5rem 1rem;
  }

  .stat-item:nth-child(2),
  .stat-item:nth-child(4) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .stat-number {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .stat-number-sm {
    font-size: 1.25rem;
  }

  .story-text {
    padding: 0 3rem;
  }

  .story-image-placeholder {
    width: 75%;
    min-width: unset;
    margin: 0 auto;
  }

  .panels .container,
  .hero-video .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .panel img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
}

.navbar-logo {
  height: 48px;
  width: auto;
}

/* ── Product Page ── */
.product-img-wrap {
  border: 2px solid var(--ink);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--cream);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Native scrollbar hidden — replaced by the always-visible .thumbs-track below. */
  scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
  display: none;
}

/* Custom always-visible, grabbable scrollbar for the thumbnail strip. */
.thumbs-track {
  position: relative;
  height: 8px;
  margin-top: 8px;
  background-color: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  cursor: pointer;
}

.thumbs-grip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 28px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
}

.thumbs-grip:hover {
  background-color: rgba(0, 0, 0, 0.55);
}

.thumbs-grip:active {
  cursor: grabbing;
}

.product-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid transparent;
  background-color: var(--cream);
  object-fit: contain;
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-thumb:hover {
  border-color: var(--muted);
}

.product-thumb.active {
  border-color: var(--ink);
}

.product-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.product-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.product-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  /* Only the dynamic product page description (avoid centering legal copy). */
  #product-desc {
    text-align: left;
  }
}

.product-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 1.5rem 0;
}

.btn-stache {
  display: inline-block;
  background-color: transparent;
  background-image: url('images/stache_button.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 85% 100%;
  opacity: 1;
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 2.76rem;
  border: none;
  transition: background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .btn-stache:hover {
    background-color: var(--ink);
    color: var(--cream);
  }
}

.btn-stache:active,
.btn-stache.added {
  background-color: var(--ink);
  color: var(--cream);
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 0;
}

.reviews-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.reviews-aggregate {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.review-star {
  color: var(--accent);
  font-size: 0.75rem;
}

.review-card {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 1.5rem;
  background: var(--cream);
  height: 100%;
}

.review-stars {
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.color-options {
  display: flex;
  gap: 0.5rem;
}

.color-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s;
  outline: none;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink);
}

.size-options {
  display: flex;
  gap: 0.5rem;
}

.size-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.size-btn:hover {
  background-color: var(--ink);
  color: var(--cream);
}

.size-btn.active {
  background-color: var(--ink);
  color: var(--cream);
}

.qty-stepper {
  display: flex;
  align-items: stretch;
}

.qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  line-height: 1;
}

.qty-btn:hover {
  background-color: var(--ink);
  color: var(--cream);
}

/* Touch devices can "stick" hover after tapping. */
@media (hover: none) {
  .qty-btn:hover {
    background-color: transparent;
    color: var(--ink);
  }

  .qty-btn.is-pressed {
    background-color: var(--ink);
    color: var(--cream);
  }
}

.qty-stepper-sm .qty-btn {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}

.qty-stepper-sm .qty-display {
  width: 1.75rem;
  height: 1.5rem;
  font-size: 0.8rem;
}

.qty-display {
  width: 3rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

.product-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.accordion-item {
  border-bottom: 1px solid var(--ink);
}

.accordion-trigger {
  -webkit-appearance: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0.85rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.accordion-icon {
  font-size: 1rem;
  transition: transform 0.2s;
}

.accordion-body {
  display: none;
  padding-bottom: 1rem;
}

.accordion-trigger[aria-expanded="true"] + .accordion-body {
  display: block;
}

.accordion-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.accordion-list li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
}

.review-author {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

@media (min-width: 768px) {
  .navbar-icons {
    padding-left: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .navbar .container {
    position: relative;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-icons {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 767.98px) {
  .color-btn {
    width: 1.5rem;
    height: 1.5rem;
  }

  .size-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.75rem;
  }
}

/* ── Bundle selection ── */
.bundle-option {
  border: 2px solid rgba(0,0,0,0.12);
  opacity: 0.42;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.bundle-option.selected {
  border: 2px solid var(--ink);
  opacity: 1;
}

.bundle-check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.bundle-option.selected .bundle-check {
  display: flex;
}

