/* Casa Almar — shared styles */
:root {
  --paper: #F4ECE0;
  --paper-2: #EBE0CF;
  --sand: #E2D3BC;
  --ink: #1F1C18;
  --ink-soft: #3A342C;
  --muted: #7A6E5E;
  --terracotta: #C5603C;
  --terracotta-deep: #9B472A;
  --sage: #8B9A7B;
  --sage-deep: #556148;
  --shell: #FBF6EE;
  --line: #D8CBB4;
  --accent: #C5603C;
  --ok: #556148;
  /* Blue paired with beige — same chroma family */
  --blue-paper: #D7DEE8;
  --blue-paper-2: #BCC8D7;
  --blue-ink: #2B3A4D;
  --blue-deep: #1B2838;
  --blue-shell: #ECEFF4;
  --blue-line: #A8B5C5;
  --blue-muted: #5A6878;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display, h1, h2 {
  font-family: 'Aboreto', 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin: 0;
  text-transform: uppercase;
}
h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: normal;
}
h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1.12; }
h2 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.12; }
h3 { font-size: clamp(22px, 2.2vw, 32px); }

/* Dual-font system: thin display (Aboreto) + italian cursive (Italianno) */
.thin {
  font-family: 'Aboreto', 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-variation-settings: normal;
}
.hand {
  font-family: 'Italianno', 'Allura', cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  display: inline;
  font-size: 1.5em;
  line-height: inherit;
  color: var(--terracotta-deep);
  padding: 0 0.04em;
  /* Thicker stroke to bulk Italianno up without losing its elegance */
  -webkit-text-stroke: 0.7px currentColor;
  text-stroke: 0.7px currentColor;
}
h1 .hand, h2 .hand {
  font-size: 1.55em;
  -webkit-text-stroke: 1.1px currentColor;
  text-stroke: 1.1px currentColor;
}
.script {
  font-family: 'Caveat', 'Homemade Apple', cursive;
  font-weight: 400;
}
.eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Top announcement bar (premium scarcity strip) */
.announce-bar {
  background: var(--ink);
  color: var(--shell);
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--shell) 12%, transparent);
}
.announce-track {
  display: inline-flex; gap: 28px;
  white-space: nowrap;
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: announce-scroll 48s linear infinite;
}
.announce-track span { display: inline-flex; align-items: center; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative; padding: 6px 0;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--terracotta);
}
.logo {
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-img {
  height: 56px; width: auto;
  display: block;
  /* Slight contrast lift for the soft pastel logo on the cream paper */
  filter: drop-shadow(0 1px 0 rgba(31,28,24,0.04));
}
.logo-footer {
  display: inline-flex; margin-bottom: 20px;
}
.logo-footer img {
  height: 96px; width: auto;
  display: block;
}
.nav-right {
  display: flex; justify-content: flex-end; gap: 20px; align-items: center;
  font-size: 13px;
}
.icon-btn {
  position: relative;
  background: none; border: none; padding: 6px;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.icon-btn:hover { color: var(--terracotta); }
.cart-bubble {
  position: absolute; top: -2px; right: -6px;
  background: var(--terracotta); color: var(--shell);
  font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}

/* Footer */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 60px 32px 32px;
  background: var(--paper-2);
}
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; color: var(--ink-soft); }
.footer li a:hover { color: var(--terracotta); }
.footer-bottom {
  max-width: 1360px; margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  max-width: 320px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--shell);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: all .2s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--shell); }
.btn.sand {
  background: var(--sand); color: var(--ink); border-color: var(--sand);
}
.btn.sand:hover { background: var(--ink); color: var(--shell); border-color: var(--ink); }
.btn .arrow {
  transition: transform .25s;
}
.btn:hover .arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.04em;
  background: var(--shell);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Layout helpers */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 32px; }
.section-inner { max-width: 1360px; margin: 0 auto; }
.divider {
  height: 1px; background: var(--line);
  max-width: 1360px; margin: 0 auto;
}

/* Product card */
.product-card {
  display: block;
  position: relative;
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-2);
  overflow: hidden;
  border-radius: 4px;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 11px 16px; border-radius: 999px;
  background: var(--shell); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  font-size: 12px; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(8px);
  transition: all .25s;
  display: flex; justify-content: space-between; align-items: center;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-card .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 2px 0;
}
.product-card .name {
  font-family: 'Fraunces', serif;
  font-size: 18px; font-weight: 400;
  letter-spacing: 0;
}
.product-card .price {
  font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.product-card .sub {
  font-size: 12px; color: var(--muted);
  padding: 2px 2px 0;
  letter-spacing: 0.04em;
}
.tag-new, .tag-oneof, .tag-edition, .tag-last {
  position: absolute; top: 12px; left: 12px;
  background: var(--shell); color: var(--ink);
  padding: 5px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.tag-oneof {
  background: var(--ink); color: var(--shell);
}
.tag-oneof::before {
  content: "✪"; font-size: 9px;
}
.tag-edition {
  background: var(--shell); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.tag-last {
  background: var(--terracotta);
  color: var(--shell);
}
.tag-last::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--shell);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Edition number badge (bottom right of product photo) */
.edition-stamp {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--shell) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 99px;
  color: var(--ink);
  backdrop-filter: blur(6px);
  letter-spacing: 0.1em;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 100;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(31,28,24,0.15);
  width: 280px;
  font-size: 13px;
  display: none;
}
.tweaks-panel.on { display: block; }
.tweaks-panel h4 {
  margin: 0 0 16px; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400;
  display: flex; justify-content: space-between; align-items: center;
}
.tweaks-panel .close {
  background: none; border: none; font-size: 20px; color: var(--muted);
  cursor: pointer; line-height: 1;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.swatch-row { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s;
}
.swatch.on { border-color: var(--ink); transform: scale(1.1); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent; font-size: 12px;
  cursor: pointer;
}
.pill.on { background: var(--ink); color: var(--shell); border-color: var(--ink); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: var(--shell);
  padding: 14px 20px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.02em;
  z-index: 200;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Marquee */
.marquee {
  overflow: hidden; padding: 10px 0;
  background: var(--ink); color: var(--shell);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Forms */
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ink);
}
.textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field label {
  display: block; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.field { margin-bottom: 20px; }

/* Utility */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
