/* First4Frames new home page styles — ported from dev storefront-child/style.css (f4f-* block). Loaded only for the 'Front Page (New)' template. */

.f4f-front-page {
  --f4f-blue: #1e73be;
  --f4f-blue-deep: #0d4a7a;
  --f4f-blue-pale: #e8f1fa;
  --f4f-ink: #1a1a2e;
  --f4f-body: #4a4a5a;
  --f4f-muted: #74748a;
  --f4f-sand: #f5f3f0;
  --f4f-light: #fafaf8;
  --f4f-white: #ffffff;
  --f4f-radius: 0;
  --f4f-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.f4f-front-page,
.f4f-front-page .site-main {
  padding: 0;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 18px;
}

/* Enforce 18px minimum on all body text */
.f4f-front-page p,
.f4f-front-page .f4f-step p,
.f4f-front-page .f4f-usp p,
.f4f-front-page .f4f-process__item p,
.f4f-front-page .f4f-prints-frames__item p,
.f4f-front-page .f4f-content-block__desc,
.f4f-front-page .f4f-card__overlay p,
.f4f-front-page .f4f-hero__content p,
.f4f-front-page .entry-content p {
  font-size: max(18px, 1em);
}

/* Full-bleed: break out of Storefront .col-full */
.f4f-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* ---- Coupon Banner ---- */
.f4f-banner {
  background-color: var(--f4f-blue);
  color: var(--f4f-white);
  text-align: center;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.f4f-banner p {
  margin: 0;
  color: var(--f4f-white);
}

/* ---- Buttons ---- */
.f4f-btn {
  display: inline-block;
  padding: 16px 36px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--f4f-radius);
  border: 2px solid transparent;
  transition: all 0.3s var(--f4f-ease);
  cursor: pointer;
  line-height: 1;
}

.f4f-btn--white {
  background-color: var(--f4f-white);
  color: var(--f4f-blue);
  border-color: var(--f4f-white);
}

.f4f-btn--white:hover,
.f4f-btn--white:focus {
  background-color: transparent;
  color: var(--f4f-white);
  border-color: var(--f4f-white);
  text-decoration: none;
}

.f4f-btn--outline {
  background-color: transparent;
  color: var(--f4f-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.f4f-btn--outline:hover,
.f4f-btn--outline:focus {
  background-color: var(--f4f-white);
  color: var(--f4f-blue);
  border-color: var(--f4f-white);
  text-decoration: none;
}

.f4f-btn--blue {
  background-color: var(--f4f-blue);
  color: var(--f4f-white);
  border-color: var(--f4f-blue);
}

.f4f-btn--blue:hover,
.f4f-btn--blue:focus {
  background-color: var(--f4f-blue-deep);
  border-color: var(--f4f-blue-deep);
  color: var(--f4f-white);
  text-decoration: none;
}

.f4f-btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===========================================================
   HERO — cinematic full-width image, centred text
   Tall aspect ratio gives the hallway image room to breathe.
   =========================================================== */
.f4f-hero {
  position: relative;
  overflow: hidden;
  min-height: min(75vh, 700px);
  max-height: 700px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--f4f-blue-deep);
}

.f4f-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.f4f-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(13, 74, 122, 0.7) 0%, transparent 70%),
    linear-gradient(to top, rgba(13, 74, 122, 0.75) 0%, rgba(30, 115, 190, 0.3) 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.f4f-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
  padding: 80px 28px 96px;
  color: var(--f4f-white);
}

.f4f-hero__content h1 {
  font-size: 2em;
  font-weight: 300;
  margin: 0 0 20px;
  color: var(--f4f-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.f4f-hero__content p {
  font-size: 1.05em;
  line-height: 1.75;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
}

.f4f-hero__content .f4f-btn-group {
  justify-content: center;
}

/* ===========================================================
   GRID ROW — 2-column pairing with a subtle dividing line.
   On mobile: stacked with generous vertical gaps.
   =========================================================== */
.f4f-grid-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===========================================================
   IMAGE CARD — the photograph is the centrepiece.
   Generous min-height so the image has a pleasing aspect ratio.
   =========================================================== */
.f4f-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 560px;
  text-decoration: none;
  color: var(--f4f-white);
}

.f4f-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--f4f-ease);
}

.f4f-card:hover .f4f-card__img,
.f4f-card:focus .f4f-card__img {
  transform: scale(1.03);
}

.f4f-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 32px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    transparent 100%
  );
  transition: background 0.5s var(--f4f-ease);
}

.f4f-card:hover .f4f-card__overlay,
.f4f-card:focus .f4f-card__overlay {
  background: linear-gradient(
    to top,
    rgba(13, 74, 122, 0.82) 0%,
    rgba(30, 115, 190, 0.25) 50%,
    transparent 100%
  );
}

.f4f-card__overlay h2 {
  font-size: 1.65em;
  font-weight: 300;
  margin: 0 0 10px;
  color: var(--f4f-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.f4f-card__overlay p {
  font-size: 0.95em;
  line-height: 1.65;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 380px;
  font-weight: 300;
}

.f4f-card__overlay .f4f-btn {
  align-self: flex-start;
  font-size: 0.78em;
  padding: 13px 28px;
}

/* ===========================================================
   CONTAINED IMAGE — displays the full image within its cell,
   centred and fitted without cropping.
   =========================================================== */
.f4f-image-contained {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background-color: var(--f4f-white);
  overflow: hidden;
}

.f4f-image-contained img {
  display: block;
  max-width: 66%;
  max-height: 66%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ===========================================================
   PRINTS & FRAMES — two side-by-side descriptions
   =========================================================== */
.f4f-prints-frames {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.f4f-prints-frames__item--card {
  background-color: transparent;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s var(--f4f-ease);
}

.f4f-prints-frames__item--card:hover {
  transform: translateY(-2px);
}

.f4f-prints-frames__item h3 {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--f4f-ink);
  margin: 0 0 10px;
  padding-bottom: 10px;
  position: relative;
}

.f4f-prints-frames__item--card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background-color: var(--f4f-blue);
}

.f4f-prints-frames__item p {
  margin: 0;
  color: var(--f4f-body);
  line-height: 1.8;
  font-size: 0.92em;
}

@media (min-width: 600px) {
  .f4f-prints-frames {
    flex-direction: row;
    gap: 16px;
  }

  .f4f-prints-frames__item--card {
    flex: 1;
  }
}

/* ===========================================================
   CONTENT BLOCK — the text half. Generous padding creates
   the "gallery wall" feeling of space around the content.
   =========================================================== */
.f4f-content-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 32px;
}

.f4f-content-block__title {
  font-size: 1.5em;
  font-weight: 300;
  margin: 0 0 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 20px;
}

/* Decorative underline accent under section titles */
.f4f-content-block__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--f4f-blue);
}

.f4f-content-block__desc {
  font-size: 1em;
  line-height: 1.8;
  margin: 0 0 32px;
}

/* Theme variants */
.f4f-content-block--light {
  background-color: var(--f4f-sand);
}

.f4f-content-block--light .f4f-content-block__title {
  color: var(--f4f-ink);
}

.f4f-content-block--white {
  background-color: var(--f4f-white);
}

.f4f-content-block--white .f4f-content-block__title {
  color: var(--f4f-ink);
}

.f4f-content-block--blue {
  background: linear-gradient(160deg, #1e73be 0%, #0d4a7a 100%);
  color: var(--f4f-white);
}

.f4f-content-block--blue .f4f-content-block__title {
  color: var(--f4f-white);
}

.f4f-content-block--blue .f4f-content-block__title::after {
  background-color: rgba(255, 255, 255, 0.5);
}

.f4f-content-block--blue .f4f-content-block__desc {
  color: rgba(255, 255, 255, 0.88);
}

/* ---- Centered content block modifier ---- */
.f4f-content-block--centered {
  align-items: center;
  text-align: center;
}

.f4f-content-block--centered .f4f-content-block__title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Button wrapper for centering ---- */
.f4f-btn-wrap {
  display: flex;
  justify-content: center;
}

/* ---- Steps (inside content block) ---- */
.f4f-steps__list {
  margin-bottom: 36px;
}

.f4f-steps__list--cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.f4f-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.f4f-step--card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 0;
  background-color: transparent;
  border-radius: 0;
  padding: 28px 24px;
  transition: transform 0.3s var(--f4f-ease);
}

.f4f-step--card:hover {
  transform: translateY(-2px);
}

.f4f-step:last-child {
  margin-bottom: 0;
}

.f4f-step__number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--f4f-blue);
  color: var(--f4f-white);
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 2px;
}

.f4f-step--card .f4f-step__number {
  width: 52px;
  height: 52px;
  font-size: 1.2em;
  margin-top: 0;
}

.f4f-step h3 {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--f4f-ink);
  letter-spacing: 0.01em;
}

.f4f-step p {
  margin: 0;
  color: var(--f4f-body);
  line-height: 1.7;
  font-size: 0.92em;
}

/* ---- USPs (inside content block) ---- */
.f4f-usps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.f4f-usps__list--cards {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.f4f-usp {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.f4f-usp--card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background-color: transparent;
  border-radius: 0;
  padding: 24px 16px;
  transition: transform 0.3s var(--f4f-ease);
}

.f4f-usp--card:hover {
  transform: translateY(-2px);
}

.f4f-usp .dashicons {
  flex-shrink: 0;
  font-size: 24px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: var(--f4f-blue);
  background-color: var(--f4f-blue-pale);
  border-radius: 50%;
  margin-top: 2px;
}

.f4f-usp--card .dashicons {
  width: 52px;
  height: 52px;
  line-height: 52px;
  font-size: 26px;
  margin-top: 0;
}

.f4f-usp h3 {
  font-size: 0.95em;
  font-weight: 600;
  margin: 0 0 5px;
  color: var(--f4f-ink);
}

.f4f-usp p {
  margin: 0;
  color: var(--f4f-body);
  line-height: 1.7;
  font-size: 0.88em;
}

/* ---- Process (inside content block) ---- */
.f4f-process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.f4f-process__list--cards {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.f4f-process__item {
  padding-left: 18px;
  border-left: 2px solid var(--f4f-blue);
}

.f4f-process__item--card {
  padding: 20px 16px;
  border-left: none;
  border-top: 3px solid var(--f4f-blue);
  background-color: transparent;
  border-radius: 0;
  text-align: center;
  transition: transform 0.3s var(--f4f-ease);
}

.f4f-process__item--card:hover {
  transform: translateY(-2px);
}

.f4f-process__item h3 {
  font-size: 0.95em;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--f4f-blue);
  letter-spacing: 0.01em;
}

.f4f-process__item p {
  margin: 0;
  color: var(--f4f-body);
  line-height: 1.7;
  font-size: 0.9em;
}

/* ===========================================================
   RESPONSIVE — Tablet  (>=600px)
   =========================================================== */
@media (min-width: 600px) {
  .f4f-usps__list:not(.f4f-usps__list--cards) {
    grid-template-columns: 1fr 1fr;
  }

  .f4f-process__list:not(.f4f-process__list--cards) {
    grid-template-columns: 1fr 1fr;
  }

  .f4f-content-block {
    padding: 64px 40px;
  }

  .f4f-steps__list--cards {
    flex-direction: row;
    gap: 16px;
  }

  .f4f-step--card {
    flex: 1;
  }
}

/* ===========================================================
   RESPONSIVE — Desktop  (>=768px)
   Grid rows go 2-column side-by-side.
   =========================================================== */
@media (min-width: 768px) {
  .f4f-hero {
    min-height: 0;
    height: 700px;
    max-height: 700px;
  }

  .f4f-hero__content {
    padding: 60px 40px 72px;
  }

  .f4f-hero__content h1 {
    font-size: 2.8em;
  }

  .f4f-hero__content p {
    font-size: 1.1em;
  }

  /* 2-column grid rows */
  .f4f-grid-row {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }

  .f4f-card {
    min-height: 600px;
  }

  .f4f-content-block {
    padding: 72px 52px;
  }

  .f4f-content-block__title {
    font-size: 1.65em;
    margin-bottom: 36px;
    padding-bottom: 24px;
  }

  .f4f-card__overlay {
    padding: 48px 36px;
  }

  .f4f-card__overlay h2 {
    font-size: 1.85em;
  }

  .f4f-step {
    margin-bottom: 32px;
  }
}

/* ===========================================================
   RESPONSIVE — Wide Desktop  (>=1024px)
   =========================================================== */
@media (min-width: 1024px) {
  .f4f-hero__content h1 {
    font-size: 3.4em;
    letter-spacing: -0.02em;
  }

  .f4f-hero__content p {
    font-size: 1.15em;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .f4f-grid-row {
    min-height: 680px;
  }

  .f4f-card {
    min-height: 680px;
  }

  .f4f-content-block {
    padding: 88px 72px;
  }

  .f4f-content-block__title {
    font-size: 1.85em;
  }

  .f4f-card__overlay {
    padding: 56px 48px;
  }

  .f4f-card__overlay h2 {
    font-size: 2.1em;
  }

  .f4f-card__overlay p {
    font-size: 1em;
  }
}

/* ===========================================================
   RESPONSIVE — Extra-wide  (>=1400px)
   Cap content block width so text doesn't run too wide.
   =========================================================== */
@media (min-width: 1400px) {
  .f4f-content-block {
    padding: 96px 88px;
  }

  .f4f-step p,
  .f4f-usp p,
  .f4f-process__item p {
    max-width: 420px;
  }
}

/* ===========================================================
   STOREFRONT OVERRIDES for front page
   =========================================================== */
.home #content > .col-full,
.page-template-template-frontpage-new-php #content > .col-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home .storefront-breadcrumb,
.page-template-template-frontpage-new-php .storefront-breadcrumb {
  display: none;
}

/* Sit the hero flush beneath the nav: kill Storefront's header bottom-margin.
   id-strength selector (#masthead is the .site-header element) so it beats
   Storefront's 4-class rule on specificity and survives WP Rocket RUCSS
   (distinct selector => not deduped against Storefront's). */
#masthead.site-header {
  margin-bottom: 0;
}

/* ...and remove the content area's top padding so nothing sits above the hero. */
#content.site-content {
  padding-top: 0;
}

.f4f-front-page .entry-content,
.f4f-front-page .type-page {
  margin: 0;
  padding: 0;
}

/* ===========================================================
   PAGE CONTENT — Editorial styling for WordPress editor content
   rendered by storefront_homepage via the_content().
   Matches the gallery-catalogue aesthetic of the custom sections.
   =========================================================== */

/* Hide the redundant "Home" page title from storefront_homepage_header */
.f4f-front-page .entry-header {
  display: none;
}

/* ---- Entry content container ---- */
.f4f-front-page .entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}

/* ---- Slider: let it breathe ---- */
.f4f-front-page .n2-section-smartslider,
.f4f-front-page ss3-force-full-width {
  margin-bottom: 0;
}

.f4f-front-page .n2_clear {
  margin-bottom: 64px;
}

/* ---- Intro section: Gallery heading + welcome text ---- */
.f4f-front-page .entry-content > h1.wp-block-heading {
  font-size: 2.4em;
  font-weight: 300;
  color: var(--f4f-ink);
  text-align: center;
  margin: 64px 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  padding-bottom: 24px;
}

.f4f-front-page .entry-content > h1.wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background-color: var(--f4f-blue);
}

.f4f-front-page .entry-content > h2.wp-block-heading:not(.has-text-align-center) {
  font-size: 1.35em;
  font-weight: 300;
  color: var(--f4f-ink);
  text-align: center;
  max-width: 720px;
  margin: 28px auto 32px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Intro paragraphs — centered, refined */
.f4f-front-page .entry-content > p {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--f4f-body);
  line-height: 1.8;
  font-size: 0.95em;
}

.f4f-front-page .entry-content > p strong {
  color: var(--f4f-blue);
  font-weight: 600;
}

/* ---- Spacers: tame them ---- */
.f4f-front-page .entry-content > .wp-block-spacer {
  height: 48px !important;
}

/* ---- Featured image block ---- */
.f4f-front-page .entry-content .wp-block-image {
  margin: 48px auto;
  text-align: center;
}

.f4f-front-page .entry-content .wp-block-image figure {
  margin: 0 auto;
  max-width: 800px;
}

.f4f-front-page .entry-content .wp-block-image img {
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---- Two-column: Our Prints / Our Frames ---- */
.f4f-front-page .entry-content .wp-block-columns {
  background-color: var(--f4f-sand) !important;
  border-radius: 8px;
  padding: 48px 40px;
  margin: 48px auto 56px;
  max-width: 100%;
  gap: 48px;
}

.f4f-front-page .entry-content .wp-block-columns .wp-block-column {
  padding: 0;
}

.f4f-front-page .entry-content .wp-block-columns h4.wp-block-heading {
  font-size: 1.3em;
  font-weight: 400;
  color: var(--f4f-ink);
  margin: 0 0 20px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: -0.01em;
}

.f4f-front-page .entry-content .wp-block-columns h4.wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--f4f-blue);
}

.f4f-front-page .entry-content .wp-block-columns p {
  color: var(--f4f-body);
  line-height: 1.8;
  font-size: 0.92em;
  margin: 0 0 16px;
  text-align: left;
}

/* ---- Section headings: New In, Best Sellers ---- */
.f4f-front-page .entry-content > h2.wp-block-heading.has-text-align-center {
  font-size: 1.85em;
  font-weight: 300;
  color: var(--f4f-ink);
  margin: 72px 0 40px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 20px;
}

.f4f-front-page .entry-content > h2.wp-block-heading.has-text-align-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background-color: var(--f4f-blue);
}

/* ---- Product grid ---- */
.f4f-front-page .wc-block-grid {
  margin: 0 auto 32px;
}

.f4f-front-page .wc-block-grid__products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.f4f-front-page .wc-block-grid__product {
  list-style: none;
  background: var(--f4f-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s var(--f4f-ease), transform 0.35s var(--f4f-ease);
  display: flex !important;
  flex-direction: column;
  text-align: center;
  float: none !important;
  max-width: none !important;
  flex-basis: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.f4f-front-page .wc-block-grid__product:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Product image */
.f4f-front-page .wc-block-grid__product-image {
  display: block !important;
  width: 100% !important;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--f4f-sand);
}

.f4f-front-page .wc-block-grid__product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s var(--f4f-ease);
}

.f4f-front-page .wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.05);
}

/* Product link — must stretch full width */
.f4f-front-page .wc-block-grid__product-link {
  display: block !important;
  width: 100%;
  text-decoration: none;
}

/* Product title */
.f4f-front-page .wc-block-grid__product-title {
  font-size: 0.95em !important;
  font-weight: 500 !important;
  color: var(--f4f-ink) !important;
  margin: 0 !important;
  padding: 16px 16px 4px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Product price */
.f4f-front-page .wc-block-grid__product-price.price {
  font-size: 0.88em !important;
  color: var(--f4f-blue) !important;
  font-weight: 600;
  padding: 0 16px 12px !important;
  margin: 0 !important;
  flex-grow: 1;
}

.f4f-front-page .wc-block-grid__product-price .woocommerce-Price-amount {
  color: var(--f4f-blue);
}

/* Add to cart / Select options button */
.f4f-front-page .wc-block-grid__product .wp-block-button.wc-block-grid__product-add-to-cart {
  padding: 0 16px 20px !important;
  margin: 0 !important;
}

.f4f-front-page .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-block !important;
  background-color: var(--f4f-blue) !important;
  color: var(--f4f-white) !important;
  padding: 10px 24px !important;
  font-size: 0.78em !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 0 !important;
  border: 2px solid var(--f4f-blue) !important;
  transition: all 0.3s var(--f4f-ease);
  cursor: pointer;
  line-height: 1;
  writing-mode: horizontal-tb !important;
}

.f4f-front-page .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.f4f-front-page .wc-block-grid__product-add-to-cart .wp-block-button__link:focus {
  background-color: var(--f4f-blue-deep) !important;
  border-color: var(--f4f-blue-deep) !important;
  color: var(--f4f-white) !important;
  text-decoration: none !important;
}

/* ---- Bottom text sections: Why F4F / Commercial Service ---- */
.f4f-front-page .entry-content > h3.wp-block-heading {
  font-size: 1.4em;
  font-weight: 400;
  color: var(--f4f-ink);
  max-width: 800px;
  margin: 56px auto 20px;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 18px;
}

.f4f-front-page .entry-content > h3.wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background-color: var(--f4f-blue);
}

/* Paragraphs following the h3s are already styled by the general p rule */

/* ---- Trustpilot widget ---- */
.f4f-front-page ~ .trustpilot-widget,
.trustpilot-widget {
  max-width: 1200px;
  margin: 48px auto 56px;
  padding: 0 28px;
  box-sizing: border-box;
}

/* ===========================================================
   PAGE CONTENT — Responsive adjustments
   =========================================================== */
@media (min-width: 600px) {
  .f4f-front-page .wc-block-grid__products {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

@media (min-width: 768px) {
  .f4f-front-page .entry-content {
    padding: 0 40px;
  }

  .f4f-front-page .entry-content > h1.wp-block-heading {
    font-size: 2.8em;
    margin-top: 80px;
  }

  .f4f-front-page .entry-content > h2.wp-block-heading.has-text-align-center {
    font-size: 2em;
    margin-top: 88px;
  }

  .f4f-front-page .entry-content .wp-block-columns {
    padding: 56px 48px;
  }
}

@media (min-width: 1024px) {
  .f4f-front-page .entry-content {
    padding: 0 56px;
  }

  .f4f-front-page .entry-content > h1.wp-block-heading {
    font-size: 3em;
  }

  .f4f-front-page .entry-content .wp-block-columns {
    padding: 64px 56px;
  }

  .f4f-front-page .wc-block-grid__products {
    gap: 32px;
  }
}  