/* ==========================================================
   PRODUCTS PAGE — refined ivory + gold identity
   Same class names / same HTML structure, richer finish.
========================================================== */

:root {
  --ivory: #f5f1e8;
  --ivory-soft: #faf7f0;
  --ink: #191813;
  --ink-soft: #4a4a4a;
  --gold: #c8b477;
  --gold-deep: #9b7f36;
  --gold-line: #e6ddc8;
  --ember: #b5732a;
}

/* ==========================================
   SECTION SHELL
========================================== */
.products-section {
  background: var(--ivory);
  padding: 0 0 80px;
}

/* ==========================================
   HERO
========================================== */
.products-hero {
  background: #191813;

  overflow: hidden;
  position: relative;
  padding: 80px 0 110px;
}

.products-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1555px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ==========================================
   HERO TOPBAR — tag + CTA badge
========================================== */
.products-topbar {
  margin-bottom: 42px;
}

.products-tag {
  font-family: "Jost";

  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 180, 119, 0.08);
  border: 1px solid rgba(200, 180, 119, 0.35);
  padding: 15px 26px;
  white-space: nowrap;
}

.products-cta-badge {
  align-items: center;
  gap: 10px;
  font-family: "Jost";
  font-weight: 600;

  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  padding: 15px 26px;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.products-cta-badge:hover {
  background: #d8c589;
  transform: translateY(-1px);
}
.products-cta-badge .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.products-cta-badge:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .products-topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }
  .products-tag,
  .products-cta-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    white-space: normal;
  }
}

.products-title {
  font-family: "Playfair Display";
  font-weight: 600;
  font-size: clamp(35px, 5.2vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #f5f1ea;
  margin: 0;
  animation: prodFade 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.products-title em {
  font-family: "Playfair Display";
  font-size: clamp(32px, 5.2vw, 65px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--gold);
}

.products-subtitle {
  color: #cfc9bd;
  font-size: 18px;
  max-width: 700px;
  margin-top: 20px;
  font-family: "Jost", sans-serif;
  line-height: 1.7;
}

.products-container {
  max-width: 1555px;
  margin: 0 auto;
  padding: 70px 60px 0;
}

@keyframes prodFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes prodLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ==========================================
   CATEGORY / SEARCH BAR
========================================== */
.home-nav {
  background: var(--ivory);
  padding: 0 60px;
}

.home-nav-inner {
  max-width: 1555px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--gold-line);
}

.home-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.home-nav-links a {
  position: relative;
  display: inline-block;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6f6552;
  text-decoration: none;
  padding-bottom: 9px;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.home-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-deep);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-nav-links a:hover,
.home-nav-links a.is-active {
  color: var(--ink);
}
.home-nav-links a:hover {
  transform: translateY(-1px);
}
.home-nav-links a:hover::after,
.home-nav-links a.is-active::after {
  right: 0;
}
.home-nav-links .home-nav-highlight {
  color: var(--ember);
}
.home-nav-links .home-nav-highlight::after {
  background: var(--ember);
}
.home-nav-links .home-nav-highlight:hover,
.home-nav-links .home-nav-highlight.is-active {
  color: #93571b;
}

.home-nav-search {
  position: relative;
  width: 340px;
  max-width: 40vw;
  flex: 0 0 auto;
  margin-left: auto;
}
.home-nav-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  pointer-events: none;
  transition: color 0.25s ease;
}
.home-nav-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px 0 44px;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(25, 24, 19, 0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.home-nav-search input::placeholder {
  color: #9c9384;
}
.home-nav-search input:hover {
  border-color: #d9cdae;
}
.home-nav-search input:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(155, 127, 54, 0.13);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
  .home-nav {
    padding: 0 40px;
  }
  .home-nav-links {
    gap: 26px;
  }
  .home-nav-search {
    width: 290px;
  }
}

@media (max-width: 992px) {
  .home-nav {
    padding: 0 28px;
  }
  .home-nav-inner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0 20px;
    border-bottom: none !important;
  }
  .home-nav-links {
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .home-nav-links::-webkit-scrollbar {
    display: none;
  }
  .home-nav-search {
    width: 240px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .home-nav {
    padding: 0 22px;
  }
  .home-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0 18px;
  }
  .home-nav-search {
    order: -1; /* search on top on phones */
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
  .home-nav-links {
    margin-right: 0;
    justify-content: space-evenly;
    gap: 20px;
  }
  .home-nav-links a {
    font-size: 13px;
    padding-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .home-nav {
    padding: 0 16px;
  }
  .home-nav-links {
    gap: 16px;
  }
  .home-nav-search input {
    height: 42px;
    font-size: 13px;
  }
}

/* ==========================================
   HERO (image variant)
========================================== */
.home-hero {
  position: relative;
  overflow: hidden;
}
.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 49, 79, 0.6) 0%,
    rgba(18, 49, 79, 0.18) 45%,
    rgba(18, 49, 79, 0.05) 100%
  );
}

.home-hero-content {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.home-hero-text {
  max-width: 640px;
}
.home-hero-title {
  font-family: "Playfair Display";
  font-weight: 800;
  font-size: 58px;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
  margin: 0 0 14px;
}
.home-hero-script {
  font-family: "Pinyon Script", cursive;
  font-size: 36px;
  color: #f5f1ea;
  margin: 0;
}
.home-hero-cta {
  flex-shrink: 0;
  border: 1.5px solid #fff;
  color: #fff;
  text-decoration: none;
  font-family: "Jost";
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px 34px;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}
.home-hero-cta:hover {
  background: #fff;
  color: #12314f;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .products-hero {
    padding: 92px 0 80px;
  }
  .products-hero-inner {
    padding: 0 28px;
  }
  .home-hero-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 30px;
    gap: 28px;
  }
  .home-hero-title {
    font-size: 38px;
  }
  .home-hero-script {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .products-hero {
    padding: 50px 0 128px;
  }
  .products-hero-inner {
    padding: 0 20px;
  }
  .products-subtitle {
    margin-top: 24px;
  }
}

/* ==========================================
   TRUST STRIP — SPLIT-FLAP TILES
========================================== */
.home-trust {
  background: var(--ivory);
  padding: 0 60px 64px;
  display: flow-root;
}
.home-trust-inner {
  max-width: 1555px;
  margin: 0 auto;
  transform: translateY(-56px);
  margin-bottom: -56px;
  background: #f2ece0;
  border: 1px solid #eae3d2;
  border-top: 2px solid var(--gold);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px -28px rgba(25, 24, 19, 0.32);
}
.home-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 4px 14px;
  position: relative;
}
/* thin gold dividers between the four items */
.home-trust-item + .home-trust-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(200, 180, 119, 0) 0%,
    rgba(200, 180, 119, 0.6) 50%,
    rgba(200, 180, 119, 0) 100%
  );
}

/* the row of black flap tiles */
.flap-row {
  display: flex;
  gap: 5px;
}
.flap-tile {
  --flap-i: 0;
  position: relative;
  min-width: 52px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: var(--gold);
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(200, 180, 119, 0.18);
  overflow: hidden;
  transform-origin: 50% 50%;
  perspective: 240px;
  /* start hidden — same as loader's .ol-flap before it flips in */
  opacity: 0;
  transform: rotateX(0deg);
}
.flap-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-0.5px);
}

/* ── SAME FLIP AS LOADER (.ol-flap.is-flipping) ── */
.home-trust.is-flapping .flap-tile {
  animation: flapReveal 0.85s cubic-bezier(0.3, 0.1, 0.3, 1) both;
  animation-delay: calc(var(--flap-i) * 160ms);
}

@keyframes flapReveal {
  0% {
    opacity: 0;
    transform: rotateX(0deg);
  }
  1% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  49% {
    transform: rotateX(90deg);
    opacity: 0.12;
  }
  50% {
    transform: rotateX(-90deg);
    opacity: 0.12;
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

.trust-heading {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--gold-deep);
  margin: 0;
  max-width: 20ch;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 0.35s;
}
.trust-desc {
  font-family: "Jost";
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 24ch;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 0.45s;
}
.home-trust.is-flapping .trust-heading,
.home-trust.is-flapping .trust-desc {
  opacity: 1;
  transform: none;
}

@media (max-width: 992px) {
  .home-trust {
    padding: 0 24px 40px;
  }
  .home-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -35px;
    padding: 35px 20px;
    gap: 35px 20px;
  }
  .home-trust-item + .home-trust-item::before {
    display: none;
  }
  .home-trust-item {
    padding: 0px;
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .home-trust-inner {
    grid-template-columns: 1fr;
  }
  .flap-tile {
    min-width: 44px;
    height: 56px;
    font-size: 24px;
  }
}

/* ==========================================
   FEATURED CATEGORIES
========================================== */
.home-categories {
  background: var(--ivory);
  padding: 56px 0 96px;
}
.home-categories-inner {
  max-width: 1555px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.home-cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  background: #1a1a1a;
  box-shadow: 0 12px 34px -20px rgba(25, 24, 19, 0.5);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}
.home-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -26px rgba(25, 24, 19, 0.55);
}
.home-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}
.home-cat-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.06) brightness(1.02);
}
.home-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0) 40%,
    rgba(26, 26, 26, 0.78) 100%
  );
  transition: opacity 0.5s ease;
}
/* gold frame revealed on hover */
.home-cat-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(245, 241, 234, 0.55);
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.home-cat-card:hover::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(200, 180, 119, 0.9);
}
.home-cat-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  z-index: 3;
  font-family: "Playfair Display";
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-cat-card:hover .home-cat-label {
  transform: translateY(-8px);
}

.home-cat-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-cat-card:hover .home-cat-label::after {
  width: 54px;
}

@media (max-width: 992px) {
  .home-categories {
    padding: 40px 0 70px;
  }
  .home-categories-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .home-categories-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .home-cat-label {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}
