/* ============================================
   SALTLINE SOCIETY — shared styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;700;900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bone: #F3F1EA;
  --bone-dim: #EAE7DD;
  --ink: #171613;
  --steel: #8B887F;
  --steel-light: #B9B6AC;
  --line: #D9D5C8;
  --white: #FDFCFA;
  --teal: #4C9A8C;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-logo: 'Playfair Display', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; -webkit-user-drag: none; user-drag: none; }
button { font-family: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: rgba(243, 241, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.logo-mark {
  display: inline-block;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--steel); }

.site-nav a.current {
  border-bottom: 1px solid var(--ink);
}

/* ---------- cart ---------- */
.cart-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.cart-toggle svg {
  width: 21px;
  height: 21px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.cart-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 19, 0.25);
  z-index: 55;
}

.cart-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 32px;
  z-index: 60;
  width: min(88vw, 340px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(23, 22, 19, 0.14);
}

.cart-panel[hidden] {
  display: none;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--steel);
  cursor: pointer;
}

.cart-close:hover { color: var(--ink); }

.cart-items {
  overflow-y: auto;
  padding: 4px 18px;
}

.cart-empty {
  padding: 24px 18px 28px;
  margin: 0;
  color: var(--steel);
  font-size: 13px;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child { border-bottom: none; }

.cart-item img {
  width: 48px;
  height: 64px;
  object-fit: contain;
  background: var(--bone);
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  margin-top: 2px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  line-height: 1;
  color: var(--ink);
}

.qty-btn:hover { border-color: var(--steel); }

.cart-panel-foot {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 12px;
}

.cart-checkout {
  display: flex;
  width: 100%;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 32px 32px;
  margin-top: 100px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-mark.logo-mark {
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

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

.footer-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  margin-top: 24px;
  letter-spacing: 0.04em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--ink);
  color: var(--bone);
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 32px 56px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 18px 0 22px;
}

.hero p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.6;
}

.tideline {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 32px;
}

.tideline svg { width: 100%; height: 20px; display: block; }

/* ---------- gallery ---------- */
.gallery-section {
  padding: 40px 0 20px;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 32px;
  max-width: 1180px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-heading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-viewport {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: calc((3 / 4 * min(78vw, 340px)) / 2 + 4px);
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-arrow svg {
  width: 18px;
  height: 18px;
}

.gallery-arrow:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.gallery-arrow--prev { left: 8px; }
.gallery-arrow--next { right: 8px; }

@media (min-width: 720px) {
  .gallery-arrow--prev { left: 24px; }
  .gallery-arrow--next { right: 24px; }
}

.gallery-scroll {
  --card-w: min(78vw, 340px);
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-light) transparent;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.gallery-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--steel-light);
}
.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-spacer {
  flex: 0 0 auto;
  width: calc((100% - var(--card-w)) / 2);
}

.card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: var(--card-w);
  background: var(--white);
  border: 1px solid var(--line);
  opacity: 0.45;
  transform: scale(0.88);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.card.active {
  opacity: 1;
  transform: scale(1);
}

.card-photo {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card-photo:hover img {
  opacity: 0.85;
}

.card-name a:hover {
  color: var(--steel);
}

.card-body {
  padding: 22px 22px 24px;
}

.card-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 480px) {
  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .card-actions {
    justify-content: space-between;
  }

  .card-actions .btn {
    flex: 1;
  }
}

.card-price {
  font-family: var(--font-mono);
  font-size: 15px;
}

/* carousel position dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.gallery-dots .dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--steel-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.gallery-dots .dot:hover {
  border-color: var(--steel);
}

.gallery-dots .dot.active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.3);
}

/* ---------- info strip ---------- */
.info-strip {
  padding: 100px 32px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.info-item h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 10px;
}

.info-item p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 720px) {
  .info-strip { grid-template-columns: 1fr; padding-top: 64px; }
  .site-nav { gap: 18px; }
  .hero { padding-top: 56px; }
}

/* ---------- product page ---------- */
.product-breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.product-breadcrumb a:hover {
  color: var(--ink);
}

.product-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-gallery-viewport {
  position: relative;
  border: 1px solid var(--line);
}

.product-photo-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.product-photo-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.product-photo-scroll::-webkit-scrollbar {
  display: none;
}

.product-photo {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone);
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.product-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-arrow svg {
  width: 16px;
  height: 16px;
}

.product-arrow:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.product-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.product-arrow--prev { left: 10px; }
.product-arrow--next { right: 10px; }

.product-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.product-dots .dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--steel-light);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.product-dots .dot:hover {
  border-color: var(--steel);
}

.product-dots .dot.active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.3);
}

.product-info {
  padding-top: 8px;
}

.product-info .card-sku {
  margin-bottom: 10px;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 18px;
}

.product-price {
  font-family: var(--font-mono);
  font-size: 22px;
  margin-bottom: 28px;
}

.product-actions {
  display: flex;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-actions .btn,
.product-actions .btn-add {
  flex: 1 1 140px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4842;
}

@media (max-width: 720px) {
  .product-main {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
}

/* ---------- contact page ---------- */
.contact-main {
  padding: 80px 32px 40px;
  max-width: 620px;
  margin: 0 auto;
}

.contact-main h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 64px);
  text-transform: uppercase;
  line-height: 0.96;
  margin: 16px 0 14px;
}

.contact-main > p.lede {
  color: var(--steel);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 48px;
  max-width: 460px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 10px 2px;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-alt {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
}

.contact-alt a {
  color: var(--ink);
  border-bottom: 1px solid var(--steel);
}
