/*
 * Tinfish Prints — Custom Styles
 * Layered on top of Tailwind CSS (CDN + inline config in functions.php).
 *
 * Color palette:
 *   #fff8ef  Warm cream    — page background
 *   #3D1F0F  Dark brown    — primary text & brand
 *   #9B3214  Rust          — CTAs, accents
 *   #EDE5D5  Parchment     — secondary surfaces
 */

/* ── Local fonts ──────────────────────────────────────────── */
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/IMFellEnglish-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("../fonts/IMFellEnglish-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sorts Mill Goudy";
  src: url("../fonts/SortsMillGoudy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sorts Mill Goudy";
  src: url("../fonts/SortsMillGoudy-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --tf-cream:      #fff8ef;
  --tf-parchment:  #EDE5D5;
  --tf-brown:      #3D1F0F;
  --tf-rust:       #9B3214;
  --tf-brown-soft: #5a3620;
  --tf-rust-deep:  #762410;
  --tf-rule:       #d6c8ae;
  --tf-gold:       #b08a3e;
}

html {
  font-feature-settings: "liga", "kern", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--tf-cream);
  color: var(--tf-brown);
  font-family: 'Newsreader', 'Noto Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse at top, rgba(155,50,20,0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(61,31,15,0.05), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .tf-display {
  font-family: 'Playfair Display', 'EB Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--tf-brown);
  letter-spacing: -0.005em;
}

.tf-eyebrow {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tf-rust);
}

.tf-rule-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--tf-rule);
}
.tf-rule-dot::before,
.tf-rule-dot::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  max-width: 4rem;
}

.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

img { max-width: 100%; height: auto; }

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  background: var(--tf-parchment);
  border-left: 3px solid var(--tf-rust);
  color: var(--tf-brown);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.95rem;
}

.woocommerce-breadcrumb {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-brown-soft);
  margin-bottom: 1rem;
}
.woocommerce-breadcrumb a { color: var(--tf-brown); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--tf-rust); }

.quantity input[type="number"] {
  width: 4rem;
  padding: 0.5rem;
  border: 1px solid var(--tf-rule);
  background: var(--tf-cream);
  font-family: 'Noto Serif', Georgia, serif;
  text-align: center;
}

.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__trigger {
  background: rgba(61,31,15,0.7);
  color: var(--tf-cream);
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}
.woocommerce-product-gallery__wrapper { margin-bottom: 1rem; }

.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 220ms ease;
  line-height: 1;
}
.tf-btn-primary {
  background: var(--tf-rust);
  color: var(--tf-cream);
  border-color: var(--tf-rust);
}
.tf-btn-primary:hover {
  background: var(--tf-rust-deep);
  border-color: var(--tf-rust-deep);
  box-shadow: 0 6px 18px -8px rgba(155,50,20,0.5);
  transform: translateY(-1px);
}
.tf-btn-ghost {
  background: transparent;
  color: var(--tf-brown);
  border-color: var(--tf-brown);
}
.tf-btn-ghost:hover {
  background: var(--tf-brown);
  color: var(--tf-cream);
  transform: translateY(-1px);
}

.tf-product-card {
  position: relative;
  transition: transform 400ms ease, box-shadow 400ms ease;
}
.tf-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -22px rgba(61,31,15,0.3);
}
.tf-product-card .tf-product-image {
  overflow: hidden;
  position: relative;
  background: var(--tf-parchment);
}
.tf-product-card .tf-product-image img {
  transition: transform 700ms ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tf-product-card:hover .tf-product-image img {
  transform: scale(1.06);
}
.tf-product-card .tf-loupe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61,31,15,0);
  opacity: 0;
  transition: all 300ms ease;
  pointer-events: none;
}
.tf-product-card:hover .tf-loupe {
  background: rgba(61,31,15,0.2);
  opacity: 1;
}
.tf-loupe-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tf-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-brown);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transform: translateY(8px);
  transition: transform 300ms ease;
}
.tf-product-card:hover .tf-loupe-icon {
  transform: translateY(0);
}

.tf-collection-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--tf-parchment);
  cursor: pointer;
  transition: transform 500ms ease;
}
.tf-collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease, filter 500ms ease;
  filter: sepia(0.12) saturate(0.95);
}
.tf-collection-tile:hover img {
  transform: scale(1.08);
  filter: sepia(0.02) saturate(1);
}
.tf-collection-tile .tf-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,31,15,0.8) 0%, rgba(61,31,15,0.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--tf-cream);
}

.tf-provenance-box {
  background: var(--tf-parchment);
  border-left: 3px solid var(--tf-rust);
  padding: 2rem 2.25rem;
  font-family: 'EB Garamond', 'Newsreader', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tf-brown-soft);
}
.tf-provenance-box blockquote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--tf-brown);
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--tf-rule);
}

.tf-filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,248,239,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tf-rule);
}

.tf-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233D1F0F' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid var(--tf-rule);
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.82rem;
  color: var(--tf-brown);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tf-select:focus {
  outline: none;
  border-color: var(--tf-brown);
}

.tf-pagination a,
.tf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.85rem;
  color: var(--tf-brown-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 200ms ease;
}
.tf-pagination a:hover {
  border-color: var(--tf-rule);
  color: var(--tf-rust);
}
.tf-pagination .current {
  border-color: var(--tf-brown);
  color: var(--tf-brown);
  font-weight: 500;
}

.tf-newsletter-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--tf-rule);
  padding: 0.75rem 0.25rem;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.95rem;
  color: var(--tf-brown);
  width: 100%;
}
.tf-newsletter-input::placeholder {
  color: var(--tf-brown-soft);
  font-style: italic;
}
.tf-newsletter-input:focus {
  outline: none;
  border-bottom-color: var(--tf-rust);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

@keyframes tfFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tf-reveal {
  animation: tfFadeUp 900ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.tf-reveal-delay-1 { animation-delay: 150ms; }
.tf-reveal-delay-2 { animation-delay: 300ms; }
.tf-reveal-delay-3 { animation-delay: 450ms; }
.tf-reveal-delay-4 { animation-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.product-badge {
  display: inline-block;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 6px;
  line-height: 1.4;
}
.product-badge--in-stock { border-color: #6a7f4a; color: #53632f; }
.product-badge--sold     { border-color: var(--tf-rust); color: var(--tf-rust); }

/* ── Neve header logo sizing ──────────────────────────────── */
.custom-logo {
  max-height: 90px;
  width: auto;
  height: auto;
}

@media print {
  .tf-no-print, header, footer, .tf-filter-bar { display: none !important; }
  body { background: white; color: black; }
}
