/* ---------- image frames (graceful degradation) ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 25% 20%, rgba(200, 162, 74, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy-3) 0%, var(--navy) 55%, #16202f 100%);
  border-radius: var(--radius);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(179, 32, 42, 0.22) 0 2px, transparent 2px 22px);
  opacity: 0.5;
  pointer-events: none;
}
.img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.img-frame.is-square { aspect-ratio: 1 / 1; }
.img-frame.is-tall { aspect-ratio: 4 / 5; }
.img-frame.is-wide { aspect-ratio: 16 / 9; }
.img-frame.is-hero { aspect-ratio: 3 / 2; }

/* ---------- product cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(200, 162, 74, 0.5); }
.product-card:hover .img-frame img { transform: scale(1.07); }
.product-card .img-frame { border-radius: 0; }
.product-card .card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.product-card .card-cat {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brass-2);
}
.product-card h3 { margin: 0; font-size: 1.12rem; }
.product-card h3 a { transition: color 0.2s var(--ease); }
.product-card h3 a:hover { color: var(--brass-2); }
.product-card .card-meta { font-size: 0.86rem; color: var(--ink-soft); }
.product-card .card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: auto;
}
.quick-add {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 2;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(244, 236, 216, 0.3);
  border-radius: var(--radius);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.product-card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--stitch); }
@media (hover: none) { .quick-add { opacity: 1; transform: none; } }

/* ---------- category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.tile:hover .img-frame img { transform: scale(1.08); }
.tile .tile-body {
  flex: 1;
  padding: 1rem 1.1rem;
  background: var(--navy);
  color: var(--cream);
}
.tile .tile-body strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.tile .tile-body span {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--brass);
}

/* ---------- steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.step {
  background: var(--navy-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-2);
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.6rem;
}

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--stitch);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.quote blockquote { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; }
.quote cite { font-style: normal; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; color: var(--brass-2); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  border-top: 3px solid var(--brass);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--brass);
  margin-bottom: 0.8rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { color: rgba(244, 236, 216, 0.85); }
.footer-grid a:hover { color: var(--brass); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(244, 236, 216, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

/* ---------- cart drawer ---------- */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-3);
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
  z-index: 200;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--brass);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 1.1rem 1.2rem;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.drawer-head h2 { margin: 0; font-size: 1.25rem; }
.drawer-body { padding: 1.2rem; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); background: var(--cream-2); }
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 199;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer-close {
  background: transparent;
  border: 1px solid rgba(244, 236, 216, 0.35);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}
.drawer-close:hover { background: rgba(244, 236, 216, 0.12); }

.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.line-item .img-frame { width: 64px; height: 64px; }
.line-item h4 { margin: 0 0 0.25rem; font-size: 0.98rem; }
.line-item .line-price { font-family: var(--font-display); font-weight: 700; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.qty button {
  background: var(--navy);
  color: var(--cream);
  border: 0;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.85rem;
  line-height: 1;
}
.qty button:hover { background: var(--stitch); }
.qty span { padding: 0.35rem 0.7rem; min-width: 34px; text-align: center; font-weight: 600; }
.remove {
  background: transparent;
  border: 0;
  color: var(--stitch);
  cursor: pointer;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  padding: 0.2rem 0;
}
.remove:hover { text-decoration: underline; }

.totals { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.free-ship { color: var(--brass-2); font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.empty-state .label { margin-bottom: 0.6rem; }

/* ---------- misc ---------- */
.provenance {
  background: var(--navy);
  color: var(--cream);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-2);
}
.provenance .label { color: var(--brass); }
.provenance p { color: rgba(244, 236, 216, 0.82); margin-bottom: 0.5rem; }

.badge {
  display: inline-block;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(200, 162, 74, 0.16);
  color: var(--brass-2);
  border: 1px solid rgba(200, 162, 74, 0.4);
}
.dark .badge { color: var(--brass); background: rgba(200, 162, 74, 0.14); }

.notice {
  background: rgba(179, 32, 42, 0.08);
  border: 1px solid rgba(179, 32, 42, 0.35);
  border-left: 4px solid var(--stitch);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.notice strong { color: var(--stitch); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

.success-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-2);
}
.success-state .label { color: var(--brass-2); }
