/**
 * Halvano — main stylesheet.
 * Layout primitives, hero, cards, and the Persian-inspired visual system.
 */

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(36, 28, 20, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}

.halvano-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.halvano-brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1e4468 0%, #102a45 100%);
  display: grid;
  place-items: center;
  color: #e5b44c;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 3px 12px rgba(18, 38, 61, 0.28);
  position: relative;
  overflow: hidden;
  /* The calligraphic glyph must not be mirrored by the RTL context. */
  direction: ltr;
}

.halvano-brand__mark svg,
.halvano-brand__mark img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

/* Gold hairline along the bottom of the brand mark */
.halvano-brand__mark::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(to left, transparent, #e5b44c, transparent);
}

.halvano-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-weight: 500;
}

.halvano-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.halvano-hero {
  background:
    radial-gradient(1100px 520px at 85% 110%, rgba(229, 180, 76, 0.18) 0%, transparent 62%),
    radial-gradient(700px 380px at 10% -10%, rgba(46, 139, 139, 0.16) 0%, transparent 60%),
    linear-gradient(155deg, #16334f 0%, #1b3a5c 48%, #102a45 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* Faint eight-point Persian star lattice over the hero */
.halvano-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("hero-pattern.svg");
  background-repeat: repeat;
  background-size: 90px 90px;
}

/* Gold hairline at the bottom of the hero */
.halvano-hero::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, #b87d1e, #e5b44c 30%, #e5b44c 70%, #b87d1e);
}

.halvano-hero > * {
  position: relative;
  z-index: 1;
}

.halvano-hero__cols {
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.halvano-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(229, 180, 76, 0.13);
  border: 1px solid rgba(229, 180, 76, 0.34);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  width: fit-content;
  margin-bottom: 1.4rem;
}

.halvano-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5b44c;
  box-shadow: 0 0 0 3px rgba(229, 180, 76, 0.25);
}

.halvano-hero__badge .halvano-eyebrow {
  margin: 0;
  font-size: 0.82rem;
}

.halvano-hero__title {
  color: #fff;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.halvano-hero__text {
  color: rgba(255, 255, 255, 0.87);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.halvano-hero__actions {
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.halvano-hero__actions .wp-block-button__link {
  background: linear-gradient(135deg, #e5b44c 0%, #c8922a 100%);
  color: #241c14;
  padding: 0.9rem 2.1rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(200, 146, 42, 0.34);
}

.halvano-hero__actions .wp-block-button__link:hover {
  background: #fff;
  color: #12263d;
  transform: translateY(-2px);
}

.halvano-hero__actions .wp-block-button:last-child .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  box-shadow: none;
}

.halvano-hero__actions .wp-block-button:last-child .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hero stats */
.halvano-hero__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.halvano-stat__num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #e5b44c;
  line-height: 1.3;
  margin: 0;
}

.halvano-stat__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* Hero product image */
.halvano-hero__art {
  position: relative;
}

.halvano-hero__image {
  margin: 0 !important;
  position: relative;
}

.halvano-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.halvano-hero__image figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  margin-top: 0.9rem;
}

/* Decorative plate on the right of the hero */
.halvano-plate {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16) 0%, transparent 46%),
    linear-gradient(145deg, #c8922a 0%, #8f6318 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  animation: halvano-float 7s ease-in-out infinite;
}

.halvano-plate__ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.halvano-plate__inner {
  position: relative;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.halvano-plate__star {
  font-size: 1.6rem;
  color: #fff3d4;
}

.halvano-plate__inner strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.halvano-plate__inner em {
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.8;
}

@keyframes halvano-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Trust strip ───────────────────────────────────────────────────── */

.halvano-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(36, 28, 20, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.halvano-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.halvano-trust__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e5b44c 0%, #c8922a 100%);
  border: 1px solid rgba(184, 125, 30, 0.4);
  color: #241c14;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 3px 10px rgba(200, 146, 42, 0.28);
}

.halvano-trust__title {
  margin: 0 0 0.2rem;
  color: #12263d;
}

.halvano-trust__title strong {
  font-weight: 700;
}

.halvano-trust__text {
  margin: 0;
  color: #5a4d40;
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ── Sections ──────────────────────────────────────────────────────── */

.halvano-section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.halvano-section--cream {
  background: linear-gradient(180deg, #fbf6ec 0%, #f5ecdd 100%);
  border-block: 1px solid rgba(36, 28, 20, 0.06);
}

.halvano-section--quote {
  background: linear-gradient(150deg, #16334f 0%, #1b3a5c 55%, #102a45 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.halvano-section--quote::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("hero-pattern.svg");
  background-repeat: repeat;
  background-size: 90px 90px;
}

.halvano-section--quote > * {
  position: relative;
  z-index: 1;
}

.halvano-section__head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.75rem;
}

.halvano-section__head p {
  color: #6b5d4f;
  margin-top: 0.7rem;
}

.halvano-section--quote .halvano-section__head p {
  color: rgba(255, 255, 255, 0.78);
}

.halvano-section__cta {
  margin-top: 2.75rem;
}

/* ── Product grid ──────────────────────────────────────────────────── */

.halvano-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
  /* The block query sits inside a constrained group by default, which
     caps the grid well below the page width. Let it breathe. */
  max-width: 1200px;
  margin-inline: auto;
}

/* Every row should have the same height, so the last row's cards do not
   stretch oddly when there are fewer items than columns. */
.halvano-grid .wp-block-post-template > li {
  align-items: stretch;
}

/* The query block itself is the grid container; its post-template <ul> and
   each <li> must not introduce their own layout or padding.
   `!important` is required because core's is-layout-flow rules set
   display: flow-root on the <ul>, which would break the grid. */
.halvano-grid .wp-block-post-template {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.halvano-grid .wp-block-post-template > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: flex;
}

.halvano-grid .wp-block-post-template > li > .halvano-card {
  flex: 1;
  width: 100%;
}

.halvano-card {
  background: #fff;
  border: 1px solid rgba(36, 28, 20, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(36, 28, 20, 0.04);
}

.halvano-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(36, 28, 20, 0.07), 0 18px 44px rgba(36, 28, 20, 0.13);
  border-color: rgba(200, 146, 42, 0.4);
}

.halvano-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #f5ecdd 0%, #efe2cd 100%);
  line-height: 0;
}

/* The featured image is wrapped in a <figure>. Let the figure flow
   normally and size the image by its own intrinsic ratio — absolute
   positioning plus aspect-ratio on the parent is fragile, because the
   parent has no definite height until the image resolves. */
.halvano-card__media figure,
.halvano-card__media .wp-block-post-featured-image {
  margin: 0 !important;
  padding: 0;
  display: block;
  line-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.halvano-card__media figure a {
  display: block;
  line-height: 0;
}

.halvano-card__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.halvano-card:hover .halvano-card__media img {
  transform: scale(1.05);
}

/* Placeholder when a product has no image yet */
.halvano-card__media:empty::after,
.halvano-card__media:not(:has(img))::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(184, 125, 30, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M25 2 L48 25 L25 48 L2 25 Z' fill='none' stroke='%23b87d1e' stroke-opacity='0.13' stroke-width='1'/%3E%3C/svg%3E");
}

.halvano-card__body {
  padding: 1.15rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.halvano-card__cat {
  margin: 0;
}

.halvano-card__cat a {
  font-size: 0.72rem;
  color: #b87d1e;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.01em;
}

.halvano-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  /* Reserve two lines so cards in the same row line up. */
  min-height: calc(1.02rem * 1.6 * 2);
  display: flex;
  align-items: flex-start;
}

.halvano-card__title a {
  text-decoration: none;
  color: #12263d;
}

.halvano-card__title a:hover {
  color: #b87d1e;
}

.halvano-card__excerpt {
  margin: 0;
  color: #6b5d4f;
  font-size: 0.82rem;
  line-height: 1.8;
  flex: 1;
  /* Reserve three lines so the price row sits at the same height. */
  min-height: calc(0.82rem * 1.8 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.halvano-card__foot {
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(36, 28, 20, 0.07);
  margin-top: 0.35rem;
}

.halvano-price {
  margin: 0;
  color: #1b3a5c;
  font-weight: 700;
  font-size: 1rem;
}

.halvano-card__cta {
  margin: 0;
}

.halvano-card__cta a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b87d1e;
  text-decoration: none;
  border: 1px solid rgba(200, 146, 42, 0.42);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.halvano-card__cta a:hover {
  background: #c8922a;
  border-color: #c8922a;
  color: #241c14;
}

/* ── Single product ────────────────────────────────────────────────── */

.halvano-single {
  padding: clamp(2rem, 4vw, 3.5rem) 0 0;
}

.halvano-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}

.halvano-single__media {
  position: sticky;
  top: 6rem;
}

.halvano-single__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(36, 28, 20, 0.14);
  margin: 0 !important;
}

.halvano-single__cat {
  margin-bottom: 0.5rem;
}

.halvano-single__cat a {
  font-size: 0.8rem;
  color: #b87d1e;
  text-decoration: none;
}

.halvano-single__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.55;
}

.halvano-single__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1b3a5c;
  margin-bottom: 1.1rem;
}

.halvano-single__price .halvano-price__unit {
  font-size: 0.62em;
  font-weight: 500;
  opacity: 0.7;
}

.halvano-single__excerpt {
  color: #5a4d40;
  font-size: 1rem;
  line-height: 2.05;
  margin-bottom: 1.75rem;
}

.halvano-single__actions {
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap !important;
}

.halvano-single__actions .wp-block-button__link {
  background: linear-gradient(135deg, #e5b44c 0%, #c8922a 100%);
  color: #241c14;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
}

.halvano-single__actions .wp-block-button:last-child .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(27, 58, 92, 0.25);
  color: #1b3a5c;
}

.halvano-single__meta {
  display: grid;
  gap: 0.7rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(36, 28, 20, 0.08);
  border-radius: 12px;
}

.halvano-single__meta p {
  margin: 0;
  font-size: 0.88rem;
  color: #5a4d40;
  line-height: 1.9;
}

.halvano-single__meta strong {
  color: #12263d;
}

.halvano-single__body {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(36, 28, 20, 0.09);
}

.halvano-single__body .halvano-date {
  display: block;
  font-size: 0.85rem;
  color: #6b5d4f;
  margin-bottom: 1.25rem;
}

.halvano-post-nav {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(36, 28, 20, 0.08);
  gap: 1rem;
}

.halvano-post-nav a {
  text-decoration: none;
  font-weight: 600;
}

.halvano-post-nav .wp-block-post-navigation-link {
  font-size: 0.9rem;
}

/* ── Why cards ─────────────────────────────────────────────────────── */

.halvano-why {
  gap: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.halvano-why > .wp-block-column {
  flex-grow: 1;
  min-width: 0;
}

.halvano-why__card {
  background: #fff;
  border: 1px solid rgba(36, 28, 20, 0.07);
  border-radius: 14px;
  padding: 2.1rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.halvano-why__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(36, 28, 20, 0.06), 0 16px 36px rgba(36, 28, 20, 0.1);
}

.halvano-why__num {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.45rem;
  font-size: 2.3rem;
  font-weight: 800;
  color: rgba(200, 146, 42, 0.16);
  line-height: 1;
}

.halvano-why__card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.12rem;
}

.halvano-why__card p {
  color: #5a4d40;
  font-size: 0.92rem;
  line-height: 2;
  margin: 0;
}

/* ── Big quote ─────────────────────────────────────────────────────── */

.halvano-bigquote {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: 26ch;
  margin-inline: auto;
}

.halvano-bigquote p {
  color: #fff;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.85;
  margin: 0;
}

.halvano-quote-by {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Category tiles ────────────────────────────────────────────────── */

.halvano-section--categories {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.halvano-cats {
  gap: 1.25rem;
  max-width: 1200px;
  margin-inline: auto;
}

/* Core constrains each column to a fraction of the grid; make the tiles
   fill their column so the row spans the page width. */
.halvano-cats > .wp-block-column {
  flex-grow: 1;
  min-width: 0;
}

.halvano-cat {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: #fff;
  background: #12263d;
  box-shadow: 0 2px 6px rgba(36, 28, 20, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  line-height: 0;
}

.halvano-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(36, 28, 20, 0.18);
}

.halvano-cat figure {
  margin: 0 !important;
  padding: 0;
  line-height: 0;
}

.halvano-cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  transition: transform 0.5s ease;
}

.halvano-cat:hover img {
  transform: scale(1.06);
}

.halvano-cat__label {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  margin: 0;
  padding: 2.25rem 1.15rem 1.1rem;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: center;
  z-index: 1;
  background: linear-gradient(to top, rgba(12, 28, 46, 0.92) 0%, rgba(12, 28, 46, 0.4) 55%, transparent 100%);
}

/* ── Footer ────────────────────────────────────────────────────────── */

.halvano-footer {
  padding: 3.25rem 0 2rem;
  margin-top: 0;
  background: linear-gradient(170deg, #16334f 0%, #102a45 100%);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

/* WordPress block styles can override the footer colour; re-assert it so
   the text keeps enough contrast against the dark background. */
.halvano-footer p,
.halvano-footer li,
.halvano-footer span {
  color: rgba(255, 255, 255, 0.88);
}

.halvano-footer .wp-block-list {
  color: rgba(255, 255, 255, 0.88);
}

.halvano-footer a {
  color: #fff;
}

.halvano-footer h2,
.halvano-footer h3 {
  color: #fff;
}

.halvano-footer__bottom {
  color: rgba(255, 255, 255, 0.7);
}

.halvano-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, #b87d1e, #e5b44c 30%, #e5b44c 70%, #b87d1e);
}

.halvano-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Breadcrumb ────────────────────────────────────────────────────── */

.halvano-breadcrumb {
  font-size: 0.85rem;
  color: #6b5d4f;
  padding: 1rem 0;
}

/* ── Skip link ─────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip-link:focus {
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .halvano-hero__stats {
    gap: 1.5rem;
  }

  .halvano-plate {
    width: min(230px, 70%);
  }

  /* Product page: stack the image above the details. */
  .halvano-single__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .halvano-single__media {
    position: static;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .halvano-grid {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 1rem;
  }

  .halvano-card__body {
    padding: 0.9rem 1rem 1.05rem;
  }

  .halvano-card__excerpt {
    display: none;
  }

  /* Titles wrap to two lines on narrow screens; drop the reserved height
     so the card does not end up with a large empty gap. */
  .halvano-card__title {
    min-height: 0;
    font-size: 0.98rem;
  }

  .halvano-hero__actions {
    flex-wrap: wrap;
  }

  .halvano-hero__stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .halvano-hero__text {
    font-size: 1rem;
  }

  .halvano-hero__badge {
    padding: 0.3rem 0.75rem;
  }

  .halvano-hero__badge .halvano-eyebrow {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .halvano-plate {
    animation: none;
  }
}
