/* ============================================================
   AceBase, rebuilt on the lookbook frame.

   Tailwind (CDN) does most of the layout; this file carries the
   pieces it cannot: the masonry columns, the filter pills, the
   sticky-nav link states, the new article typography for the
   migrated news/guide pages, and the Crisp close button.
   ============================================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fafafa;
  color: #18181b;
}

.font-serif-brand {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- hero band ---------- */

.ab-hero {
  background: linear-gradient(180deg, #f6f3ec 0%, #fafafa 100%);
  border-bottom: 1px solid #ece9e1;
}

/* ---------- product rows (5 per row, last row centred) ---------- */

.masonry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.masonry-item {
  width: calc((100% - 5rem) / 5);
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .masonry-item {
    width: calc((100% - 3.75rem) / 4);
  }
}

@media (max-width: 900px) {
  .masonry-item {
    width: calc((100% - 2.5rem) / 3);
  }
}

@media (max-width: 600px) {
  .masonry-item {
    width: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 400px) {
  .masonry-item {
    width: 100%;
  }
}

.masonry-item[hidden] {
  display: none !important;
}

/* ---------- nav ---------- */

.nav-link {
  white-space: nowrap;
  padding: 0.375rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525b;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover { background: #f4f4f5; color: #18181b; }

.nav-link.is-active { background: #18181b; color: #ffffff; }

@media (min-width: 640px) { .nav-link { font-size: 0.8125rem; } }

/* ---------- mobile drawer ---------- */

.ab-drawer { visibility: hidden; transition: visibility 0s 0.26s; }
.ab-drawer.is-open { visibility: visible; transition: none; }

.ab-drawer__backdrop { opacity: 0; transition: opacity 0.22s ease; }
.ab-drawer.is-open .ab-drawer__backdrop { opacity: 1; }

.ab-drawer__panel {
  transform: translateX(-100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
.ab-drawer.is-open .ab-drawer__panel { transform: translateX(0); }

.ab-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #18181b;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ab-drawer__link:hover { background: #f4f4f5; }

.ab-drawer__link.is-active { background: #18181b; color: #ffffff; }

/* Gallery arrows in the quick-view modal */
.gm-arrow {
  display: none;
  align-items: center;
  justify-content: center;
}

.gm-arrow.is-on { display: flex; }

.spec-row { cursor: pointer; }

.spec-row.is-selected {
  background: #f4f4f5;
  color: #18181b;
}

.spec-row.is-selected .spec-row__price { color: #18181b; }

[data-open-gear]:focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 3px;
}

/* ---------- article pages (migrated news/guides) ---------- */

.ab-mag {
  max-width: 880px;
  margin: 0 auto;
}

.ab-mag .ab-hero--article {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 38px;
}

.ab-mag .ab-hero__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #e4e4e7;
}

.ab-mag .ab-hero__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  color: #18181b;
}

.ab-mag .ab-hero__excerpt {
  margin: 14px 0 0;
  color: #52525b;
  font-size: 15px;
  line-height: 1.65;
}

.ab-mag .ab-hero__more { margin: 18px 0 0; }

.ab-mag .ab-hero__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: #18181b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ab-mag .ab-hero__more a:hover { background: #3f3f46; }

.ab-mag .ab-section { margin-top: 34px; }

.ab-mag .ab-section__head { margin-bottom: 14px; }

.ab-mag .ab-section__title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4e7;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #18181b;
}

.ab-mag .ab-section p,
.ab-mag .ab-section li {
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.75;
}

.ab-mag .ab-section p { margin: 0 0 14px; }

.ab-mag .ab-section ul,
.ab-mag .ab-section ol { margin: 0 0 16px; padding-left: 1.25rem; }

.ab-mag .ab-section li { margin-bottom: 6px; }

.ab-mag .ab-section table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.ab-mag .ab-section th,
.ab-mag .ab-section td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e7;
  text-align: left;
  vertical-align: top;
}

.ab-mag .ab-section th {
  color: #18181b;
  font-weight: 600;
  background: #fbfaf7;
}

.ab-mag .ab-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.ab-mag .ab-section a { color: #18181b; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 767px) {
  .ab-mag .ab-hero--article { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ab-mag .ab-section { overflow-x: auto; }
}

/* ---------- Crisp close button ---------- */

.ab-crisp-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000050;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #ffffff;
  color: #18181b;
  cursor: pointer;
}

.ab-crisp-close.is-visible { display: flex; }

/* Quick view: an item sold directly keeps the PayPal button as the primary
   action, so the chat quote drops to a quiet outline beside it. */
#gmQuote.is-quiet {
  background: #ffffff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  box-shadow: none;
}
#gmQuote.is-quiet:hover {
  background: #fafafa;
  color: #18181b;
}

/* Checkout form: the field border turns red only after a PayPal click was
   rejected for a missing value. */
.ab-field.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}


/* ---------- article prose (guides, about, order, FAQ, updates) ---------- */

.prose-mylure h1 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: #18181b;
}

.prose-mylure h2 {
  margin: 32px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #18181b;
}

.prose-mylure h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #18181b;
}

.prose-mylure p,
.prose-mylure li {
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.75;
}

.prose-mylure p { margin: 0 0 14px; }
.prose-mylure ul,
.prose-mylure ol { margin: 0 0 16px; padding-left: 1.25rem; }
.prose-mylure li { margin-bottom: 6px; }

.prose-mylure a { color: #18181b; text-decoration: underline; text-underline-offset: 2px; }

.prose-mylure table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.prose-mylure th,
.prose-mylure td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e7;
  text-align: left;
  vertical-align: top;
}

.prose-mylure th { color: #18181b; font-weight: 600; background: #fbfaf7; }

.prose-mylure blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #18181b;
  background: #fbfaf7;
  color: #3f3f46;
}

.prose-mylure blockquote p { margin: 0; }

.prose-mylure img { max-width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 767px) {
  .prose-mylure table { display: block; overflow-x: auto; }
}


/* Crisp close button (crisp.js creates it) */
.ab-crisp-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000050;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #ffffff;
  color: #18181b;
  cursor: pointer;
}

.ab-crisp-close.is-visible { display: flex; }


/* Quick-view gallery arrows */
.pm-arrow { display: none; }
.pm-arrow.is-on { display: flex; }
