/*
Theme Name: Foto Larko Theme
Theme URI: https://fotolarko.wbos.online/
Author: Foto Larko
Description: Custom theme for Foto Larko photo printing with WooCommerce integration.
Version: 2.0.0
Text Domain: fotolarko
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --fl-red: #BA080B;
  --fl-red-dark: #94060A;
  --fl-navy: #06315B;
  --fl-navy-deep: #041F3A;
  --fl-paper: #FFFFFF;
  --fl-mist: #F2F5F8;
  --fl-mist-2: #E6ECF2;
  --fl-text: #142235;
  --fl-muted: #55657A;
  --fl-line: #DCE3EB;

  --fl-font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fl-font-head: "Outfit", "Satoshi", system-ui, sans-serif;

  --fl-radius: 16px;
  --fl-radius-sm: 10px;
  --fl-shadow: 0 1px 2px rgba(6, 49, 91, .06), 0 8px 24px rgba(6, 49, 91, .08);
  --fl-shadow-lift: 0 2px 4px rgba(6, 49, 91, .06), 0 18px 40px rgba(6, 49, 91, .14);
  --fl-ease: cubic-bezier(.2, .7, .2, 1);
  --fl-gutter: clamp(20px, 4vw, 40px);
  --fl-topbar-h: 38px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--fl-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fl-text);
  background: var(--fl-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fl-font-head);
  color: var(--fl-navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fl-red); text-underline-offset: 3px; }
a:hover { color: var(--fl-red-dark); }

:focus-visible {
  outline: 3px solid var(--fl-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fl-skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--fl-navy);
  color: #fff;
  border-radius: var(--fl-radius-sm);
  transition: top .2s;
}
.fl-skip-link:focus { top: 12px; color: #fff; }

.fl-container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--fl-gutter));
  margin-inline: auto;
  padding-inline: var(--fl-gutter);
}

/* Admin bar icons */
#wpadminbar .ab-icon::before,
#wpadminbar .ab-item .ab-icon::before { font-family: "dashicons" !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.fl-btn,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button,
.woocommerce ul.products li.product .button,
.wc-block-components-button:not(.is-link),
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--fl-red);
  color: #fff;
  font-family: var(--fl-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--fl-ease), box-shadow .2s;
}

.fl-btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce ul.products li.product .button:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-element-button:hover {
  background: var(--fl-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(186, 8, 11, .22);
}

.fl-btn:active,
.button:active,
.wc-block-components-button:not(.is-link):active { transform: translateY(0) scale(.98); }

.fl-btn--ghost {
  background: transparent;
  color: var(--fl-navy);
  box-shadow: inset 0 0 0 1.5px var(--fl-navy);
}
.fl-btn--ghost:hover {
  background: var(--fl-navy);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--fl-navy);
}

/* functions.php emits "VIEW MORE" in caps: render it as sentence case.
   (::first-letter needs a block box, not flex.) */
.woocommerce a.button.fl-view-package,
.woocommerce a.button.fl-card-related-button {
  display: block;
  text-align: center;
  text-transform: lowercase !important;
}
.fl-view-package::first-letter,
.fl-card-related-button::first-letter { text-transform: uppercase; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: calc(-1 * var(--fl-topbar-h));
  z-index: 100;
}
body.admin-bar .site-header { top: calc(32px - var(--fl-topbar-h)); }

.fl-topbar {
  height: var(--fl-topbar-h);
  background: var(--fl-navy);
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
}
.fl-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fl-topbar-left { display: flex; gap: 28px; }
.fl-topbar a { color: inherit; text-decoration: none; }
.fl-topbar a:hover { color: #fff; text-decoration: underline; }
.fl-topbar-social { display: flex; gap: 16px; font-size: 14px; }
.fl-topbar :focus-visible, .site-footer :focus-visible, .fl-gifts :focus-visible { outline-color: #fff; }

.fl-header-main {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled .fl-header-main {
  border-color: var(--fl-line);
  box-shadow: 0 6px 24px rgba(6, 49, 91, .08);
}

.fl-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.fl-logo { flex: none; display: block; }
.fl-logo img { width: auto; height: 60px; }

.fl-nav { margin-left: auto; }
.fl-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.fl-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--fl-navy);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.fl-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--fl-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--fl-ease);
}
.fl-nav a:hover { color: var(--fl-navy); }
.fl-nav a:hover::after,
.fl-nav .current-menu-item > a::after,
.fl-nav .current_page_item > a::after { transform: scaleX(1); }

.fl-cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--fl-navy);
  transition: background-color .2s;
}
.fl-cart-link:hover { background: var(--fl-mist); color: var(--fl-navy); }
.fl-cart-count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--fl-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ==========================================================================
   Inner page header (markup from functions.php)
   ========================================================================== */
.fl-page-header {
  background: var(--fl-mist);
  border-bottom: 1px solid var(--fl-line);
}
.fl-page-header-inner {
  max-width: calc(1200px + 2 * var(--fl-gutter));
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--fl-gutter) clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}
.fl-page-title {
  margin: 0;
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--fl-muted);
}
.fl-breadcrumb a { color: var(--fl-muted); text-decoration: none; }
.fl-breadcrumb a:hover { color: var(--fl-red); text-decoration: underline; }
.fl-breadcrumb-sep::before { content: "/"; opacity: .6; }
.fl-breadcrumb-current { color: var(--fl-navy); font-weight: 600; }

/* Product pages: the product title lives in the summary, keep only the breadcrumb */
.single-product .fl-page-title { display: none; }
.single-product .fl-page-header-inner { padding-block: 18px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.fl-section { padding-block: clamp(64px, 9vw, 112px); }

.fl-section-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.fl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.fl-section-head p {
  max-width: 44ch;
  margin: 0;
  color: var(--fl-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero: prints that drop onto the table and develop
   ========================================================================== */
.fl-hero {
  background:
    radial-gradient(1200px 500px at 85% 0%, var(--fl-mist-2), transparent 70%),
    var(--fl-mist);
  overflow: hidden;
}
.fl-hero-inner {
  display: grid;
  gap: 48px;
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
.fl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--fl-red);
}
.fl-hero-kicker::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.fl-hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 22px;
  max-width: 14ch;
}
.fl-hero-lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--fl-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.fl-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fl-hero-copy > * { animation: flRise .8s var(--fl-ease) backwards; }
.fl-hero-copy > :nth-child(2) { animation-delay: .08s; }
.fl-hero-copy > :nth-child(3) { animation-delay: .16s; }
.fl-hero-copy > :nth-child(4) { animation-delay: .24s; }

.fl-hero-prints {
  position: relative;
  height: clamp(280px, 70vw, 520px);
}
.fl-print {
  --r: 0deg;
  position: absolute;
  width: 62%;
  padding: clamp(6px, 1.2vw, 12px);
  background: #fff;
  border-radius: 3px;
  box-shadow:
    0 1px 1px rgba(6, 49, 91, .08),
    0 12px 30px rgba(6, 49, 91, .16),
    0 30px 60px rgba(6, 49, 91, .10);
  transform: rotate(var(--r));
  animation: flDrop 1s var(--fl-ease) backwards;
  transition: transform .5s var(--fl-ease);
}
.fl-print img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  animation: flDevelop 2.2s ease-out backwards;
}
.fl-print--1 { --r: -7deg; left: 0; top: 8%; animation-delay: .15s; }
.fl-print--2 { --r: 4deg; right: 0; top: 0; animation-delay: .4s; z-index: 1; }
.fl-print--3 { --r: -2deg; left: 18%; bottom: 0; animation-delay: .65s; z-index: 2; }
.fl-print--1 img { animation-delay: .5s; }
.fl-print--2 img { animation-delay: .75s; }
.fl-print--3 img { animation-delay: 1s; }
.fl-hero-prints:hover .fl-print--1 { transform: rotate(-10deg) translate(-8px, -4px); }
.fl-hero-prints:hover .fl-print--2 { transform: rotate(7deg) translate(8px, -6px); }
.fl-hero-prints:hover .fl-print--3 { transform: rotate(-1deg) translateY(6px); }

@keyframes flDrop {
  from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) + 8deg)) scale(1.04); }
  to   { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes flDevelop {
  from { filter: grayscale(1) brightness(1.8) contrast(.5) blur(2px); }
  to   { filter: none; }
}
@keyframes flRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.fl-how .fl-section-title { margin-bottom: clamp(32px, 5vw, 56px); }

.fl-steps {
  --fl-num: 56px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.fl-step { position: relative; padding-left: calc(var(--fl-num) + 20px); }
.fl-step-num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: var(--fl-num); height: var(--fl-num);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--fl-navy);
  color: var(--fl-navy);
  font-family: var(--fl-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 1;
  transition: background-color .4s, color .4s, border-color .4s;
}
.fl-step:last-child .fl-step-num { background: var(--fl-red); border-color: var(--fl-red); color: #fff; }
.fl-step h3 { font-size: 1.4rem; margin: 12px 0 6px; }
.fl-step p { color: var(--fl-muted); margin: 0; max-width: 34ch; }

/* connecting line, drawn when the list scrolls into view */
.fl-steps::before {
  content: "";
  position: absolute;
  left: calc(var(--fl-num) / 2 - 1px);
  top: var(--fl-num);
  bottom: 40px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--fl-navy) 0 6px, transparent 6px 12px);
  opacity: .35;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--fl-ease) .2s;
}
.fl-steps.is-visible::before,
html:not(.fl-reveal-ready) .fl-steps::before { transform: none; }

/* ==========================================================================
   Product cards (front page)
   ========================================================================== */
.fl-grid { display: grid; gap: 20px; }
.fl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fl-grid--gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.fl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  overflow: hidden;
  transition: transform .35s var(--fl-ease), box-shadow .35s var(--fl-ease), border-color .35s;
}
.fl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fl-shadow-lift);
  border-color: transparent;
}
.fl-card-media { display: block; overflow: hidden; background: #fff; }
.fl-card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform .6s var(--fl-ease);
}
.fl-card:hover .fl-card-media img { transform: scale(1.04); }
.fl-card-media .fl-placeholder-img { object-fit: cover; }

.fl-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--fl-line);
  flex: 1;
}
.fl-card-title { font-size: 1.25rem; margin: 0 0 4px; }
.fl-card-title a { color: var(--fl-navy); text-decoration: none; }
/* whole card is the link target */
.fl-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fl-card-title a:focus-visible { outline: none; }
.fl-card:has(.fl-card-title a:focus-visible) { outline: 3px solid var(--fl-red); outline-offset: 3px; }
.fl-card-price {
  margin: 0;
  font-family: var(--fl-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fl-red);
  letter-spacing: -0.02em;
}
.fl-card-note, .fl-card-text { margin: 0; color: var(--fl-muted); font-size: 15px; }
.fl-card-text { margin-bottom: 8px; }

/* ==========================================================================
   Gifts band
   ========================================================================== */
.fl-gifts { background: var(--fl-navy); color: #fff; }
.fl-gifts .fl-section-title { color: #fff; }
.fl-gifts .fl-section-head p { color: rgba(255, 255, 255, .78); }
.fl-gifts .fl-card { border-color: transparent; }
.fl-gifts .fl-card:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.fl-gifts .fl-card:has(.fl-card-title a:focus-visible) { outline-color: #fff; }
.fl-card--gift .fl-card-body { border-top: 0; justify-content: center; }
.fl-card--gift .fl-card-media { background: var(--fl-mist); }

/* ==========================================================================
   Visit band
   ========================================================================== */
.fl-visit { background: var(--fl-mist); }
.fl-visit-inner { display: grid; gap: 40px; align-items: center; }
.fl-visit-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--fl-radius);
}
.fl-visit-copy .fl-section-title { margin-bottom: 16px; max-width: 16ch; }
.fl-visit-copy > p { color: var(--fl-muted); max-width: 46ch; }
.fl-visit-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid var(--fl-line);
}
.fl-visit-list li { border-bottom: 1px solid var(--fl-line); }
.fl-visit-list a {
  display: block;
  padding: 14px 0;
  color: var(--fl-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, transform .3s var(--fl-ease);
}
.fl-visit-list a:hover { color: var(--fl-red); transform: translateX(6px); }

/* ==========================================================================
   Placeholders for products without images
   ========================================================================== */
img.woocommerce-placeholder,
.woocommerce-product-gallery__image--placeholder img,
.wc-block-components-product-image img[src*="woocommerce-placeholder"],
.wc-block-cart-item__image img[src*="woocommerce-placeholder"],
.wc-block-components-order-summary-item__image img[src*="woocommerce-placeholder"] {
  object-fit: none;
  object-position: -99999px -99999px;
  background: var(--fl-mist) url("assets/img/gift-photo.svg") center / cover no-repeat;
}
a[href*="photo-mug"] img.woocommerce-placeholder,
.fl-product-photo-mug .woocommerce-product-gallery__image--placeholder img,
.fl-product-photo-mug .woocommerce-product-gallery img.wp-post-image[src*="placeholder"] {
  background-image: url("assets/img/gift-mug.svg");
}
a[href*="keyring"] img.woocommerce-placeholder,
.fl-product-photo-keyring .woocommerce-product-gallery__image--placeholder img,
.fl-product-photo-keyring .woocommerce-product-gallery img.wp-post-image[src*="placeholder"] {
  background-image: url("assets/img/gift-keyring.svg");
}
.woocommerce-product-gallery__image--placeholder img { width: 100%; aspect-ratio: 4 / 3; }

/* ==========================================================================
   Shop archive
   ========================================================================== */
.fl-shop { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.fl-shop-group + .fl-shop-group { margin-top: clamp(56px, 8vw, 96px); }
.fl-shop .fl-section-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto !important;  /* beat woocommerce-smallscreen.css 48% floats */
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 0 20px;
  background: #fff;
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  overflow: hidden;
  transition: transform .35s var(--fl-ease), box-shadow .35s var(--fl-ease), border-color .35s;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--fl-shadow-lift);
  border-color: transparent;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: 0;
  border-bottom: 1px solid var(--fl-line);
  transition: transform .6s var(--fl-ease);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product a img.woocommerce-placeholder { object-fit: none; background-size: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 16px 20px 2px;
  margin: 0;
  font-family: var(--fl-font-head);
  font-size: 1.2rem;
  color: var(--fl-navy);
}
.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 20px;
  margin: 0 0 16px;
  font-family: var(--fl-font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fl-red);
}
.woocommerce ul.products li.product .button {
  margin: auto 20px 0;
  min-height: 44px;
  background: transparent;
  color: var(--fl-navy);
  box-shadow: inset 0 0 0 1.5px var(--fl-line);
}
.woocommerce ul.products li.product:hover .button,
.woocommerce ul.products li.product .button:hover {
  background: var(--fl-red);
  color: #fff;
  box-shadow: none;
  transform: none;
}
.woocommerce-result-count, .woocommerce-ordering { color: var(--fl-muted); font-size: 15px; }

/* ==========================================================================
   Single product
   ========================================================================== */
.woocommerce-single-product { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 104px); }

.woocommerce div.product,
.woocommerce-page div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0;
}
.woocommerce div.product > *:not(.images):not(.summary) { grid-column: 1 / -1; }

.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
  float: none;
  width: auto;
  margin: 0;
}
.woocommerce div.product div.images {
  background: #fff;
  border: 1px solid var(--fl-line);
  border-radius: 20px;
  overflow: hidden;
  align-self: start;
}
.woocommerce div.product div.images img { border-radius: 0; }
.woocommerce div.product div.images .flex-control-thumbs { padding: 12px; }

.woocommerce div.product .product_title {
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.woocommerce-product-details__short-description { color: var(--fl-muted); font-size: 1.1rem; }
.woocommerce-product-details__short-description p { margin: 0 0 8px; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 8px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fl-line);
  font-family: var(--fl-font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--fl-navy);
  letter-spacing: -0.02em;
}

.fl-start-now { margin: 0 0 24px; }
.woocommerce a.button.fl-start-now-btn,
.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 56px;
  padding-inline: 40px;
  font-size: 17px;
}
.woocommerce div.product form.cart { margin: 0 0 24px; display: flex; gap: 12px; align-items: center; }
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { margin: 0; float: none; }
.woocommerce div.product form.cart div.quantity:has(input[type="hidden"]) { display: none; }
.woocommerce .quantity .qty {
  width: 72px;
  min-height: 56px;
  border: 1px solid var(--fl-line);
  border-radius: 12px;
  font-size: 16px;
}

.fl-next-steps {
  counter-reset: fl-next;
  list-style: none;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--fl-mist);
  border-radius: var(--fl-radius-sm);
  font-size: 15px;
  color: var(--fl-text);
}
.fl-next-steps li {
  counter-increment: fl-next;
  position: relative;
  padding-left: 34px;
}
.fl-next-steps li + li { margin-top: 10px; }
.fl-next-steps li::before {
  content: counter(fl-next);
  position: absolute;
  left: 0; top: 1px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fl-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.woocommerce div.product .product_meta { font-size: 14.5px; color: var(--fl-muted); }
.woocommerce div.product .product_meta a { color: var(--fl-navy); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid var(--fl-line);
  overflow-x: auto;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 4px;
  margin-right: 20px;
  color: var(--fl-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--fl-navy);
  border-bottom-color: var(--fl-red);
}
.woocommerce div.product .woocommerce-tabs .panel { max-width: 70ch; color: var(--fl-text); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border-color: var(--fl-line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--fl-line); padding: 10px 12px; }

/* Related packages (markup from functions.php) */
.fl-other-packages { margin-top: clamp(48px, 7vw, 80px); }
.fl-other-packages-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; margin-bottom: 28px; }
.fl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.fl-card-related {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  overflow: hidden;
  transition: transform .35s var(--fl-ease), box-shadow .35s var(--fl-ease);
}
.fl-card-related:hover { transform: translateY(-4px); box-shadow: var(--fl-shadow-lift); }
.fl-card-related-top {
  order: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px 4px;
}
.fl-card-related-name { font-family: var(--fl-font-head); font-weight: 700; font-size: 1.15rem; color: var(--fl-navy); }
.fl-card-related-price { font-family: var(--fl-font-head); font-weight: 700; color: var(--fl-red); font-size: 1.2rem; }
.fl-card-related-image { order: 1; border-bottom: 1px solid var(--fl-line); }
.fl-card-related-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.fl-card-related-footer { order: 3; padding: 12px 20px 20px; }
.woocommerce a.button.fl-card-related-button {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: var(--fl-navy);
  box-shadow: inset 0 0 0 1.5px var(--fl-line);
}
.woocommerce a.button.fl-card-related-button:hover { background: var(--fl-red); color: #fff; box-shadow: none; }

/* ==========================================================================
   Notices
   ========================================================================== */
/* Woo focuses notices programmatically for screen readers; no ring on a non-control */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus,
.woocommerce-notices-wrapper:focus { outline: none; }

/* ==========================================================================
   Notices (layout)
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 28px;
  padding: 16px 20px 16px 3.4em;
  background: #fff;
  color: var(--fl-text);
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius-sm);
  box-shadow: var(--fl-shadow);
  list-style: none;
  animation: flRise .5s var(--fl-ease) backwards;
}
.woocommerce-message::before { color: #1E7A3C; }
.woocommerce-info::before { color: var(--fl-navy); }
.woocommerce-error::before { color: var(--fl-red); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { top: 50%; transform: translateY(-50%); left: 1.2em; }
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { display: none; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  order: 2;
  margin-left: auto;
  float: none;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}

/* ==========================================================================
   Block cart & checkout
   ========================================================================== */
.fl-page-content { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px); }

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { max-width: none; margin: 0; }

.wc-block-cart .wc-block-cart__totals-title,
.wc-block-cart-items__header,
.wc-block-components-checkout-step__title,
.wc-block-components-title {
  font-family: var(--fl-font-head) !important;
  color: var(--fl-navy);
  letter-spacing: 0;
}
.wc-block-cart-items__header { font-size: 13px; text-transform: none; color: var(--fl-muted); }
.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-sidebar .wc-block-components-checkout-order-summary__content,
.wc-block-components-order-summary {
  border-radius: var(--fl-radius);
}
.wc-block-cart .wc-block-components-sidebar {
  padding: 24px;
  background: var(--fl-mist);
  border-radius: var(--fl-radius);
}
.wc-block-cart-item__image img { border-radius: var(--fl-radius-sm); background: #fff; }
.wc-block-components-product-name {
  font-family: var(--fl-font-head);
  font-weight: 700;
  font-size: 1.1rem !important;
  color: var(--fl-navy) !important;
  text-decoration: none !important;
}
.wc-block-components-product-name:hover { color: var(--fl-red) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--fl-font-head);
  font-size: 1.35rem !important;
  color: var(--fl-navy);
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button { width: 100%; min-height: 56px !important; font-size: 17px !important; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
  border-radius: var(--fl-radius-sm) !important;
  border-color: #B9C4D1 !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--fl-navy) !important;
  box-shadow: 0 0 0 1px var(--fl-navy) !important;
}
.wc-block-checkout__sidebar.is-sticky { top: 110px; }
.wc-block-components-checkout-step__heading { margin-top: 8px; }

/* Empty cart (block) */
.wc-block-cart__empty-cart__title { font-family: var(--fl-font-head); color: var(--fl-navy); }

/* Classic cart template (woocommerce/cart/cart.php), used if the cart block is removed */
.fl-cart-card, .fl-cart-totals-card { background: #fff; border: 1px solid var(--fl-line); border-radius: var(--fl-radius); padding: 8px 20px; }
.fl-cart-header-divider { display: none; }
.fl-cart-bottom { display: flex; justify-content: flex-end; margin-top: 24px; }
.fl-cart-bottom-left { display: none; }
.fl-cart-bottom-right { width: 100%; max-width: 440px; }
.woocommerce table.shop_table { border: 0; border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--fl-line); padding: 14px 10px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce a.remove { color: var(--fl-red) !important; }
.woocommerce a.remove:hover { background: var(--fl-red); color: #fff !important; }
.fl-cart-actions-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.fl-cart-coupon { display: flex; gap: 8px; }
.fl-edit-photos-link { margin-right: 12px; font-weight: 600; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.fl-contact-page { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.fl-contact-lead { font-size: 1.15rem; color: var(--fl-muted); max-width: 60ch; margin-bottom: 32px; }
.fl-contact-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.fl-contact-card {
  background: #fff;
  border: 1px solid var(--fl-line);
  border-radius: var(--fl-radius);
  padding: clamp(24px, 4vw, 40px);
}
.fl-contact-card h2 { font-size: 1.6rem; margin-bottom: 20px; }
.fl-contact-details { background: var(--fl-navy); border-color: var(--fl-navy); color: rgba(255, 255, 255, .85); }
.fl-contact-details h2, .fl-contact-details strong { color: #fff; }
.fl-contact-details strong { font-weight: 600; font-size: 14px; opacity: .7; }
.fl-contact-details a { color: #fff; font-weight: 600; text-decoration: none; }
.fl-contact-details a:hover { text-decoration: underline; }
.fl-contact-details :focus-visible { outline-color: #fff; }
.fl-contact-social-icons { display: flex; gap: 10px; margin-top: 10px; }
.fl-social-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background-color .2s, border-color .2s;
}
.fl-social-icon:hover { background: #fff; color: var(--fl-navy) !important; border-color: #fff; }

.fl-contact-form p { margin: 0 0 18px; }
.fl-contact-form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--fl-navy); font-size: 15px; }
.fl-contact-form .required { color: var(--fl-red); }
.fl-contact-form input,
.fl-contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #B9C4D1;
  border-radius: var(--fl-radius-sm);
  font: inherit;
  color: var(--fl-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.fl-contact-form textarea { min-height: 140px; resize: vertical; }
.fl-contact-form input:focus,
.fl-contact-form textarea:focus {
  outline: none;
  border-color: var(--fl-navy);
  box-shadow: 0 0 0 3px rgba(6, 49, 91, .15);
}
.fl-form-success, .fl-form-error { padding: 14px 16px; border-radius: var(--fl-radius-sm); font-weight: 600; }
.fl-form-success { background: #E7F4EC; color: #155C2C; }
.fl-form-error { background: #FDECEC; color: var(--fl-red-dark); }

.fl-contact-map { border-radius: var(--fl-radius); overflow: hidden; border: 1px solid var(--fl-line); }
.fl-contact-map iframe { display: block; height: 420px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--fl-navy-deep);
  color: rgba(255, 255, 255, .75);
  font-size: 15.5px;
  padding-top: clamp(56px, 7vw, 88px);
}
.fl-footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.fl-footer-logo img { height: 76px; width: auto; margin-bottom: 18px; }
.fl-footer-brand p { max-width: 36ch; }
.fl-footer-heading {
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.fl-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.fl-social { display: flex; gap: 10px; margin-top: 20px; }
.fl-social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.fl-social a:hover { background: #fff; color: var(--fl-navy-deep); border-color: #fff; text-decoration: none; }
.fl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.fl-footer-bottom p { margin: 0; }

/* Font Awesome brand glyphs */
.fa-brands { font-family: "Font Awesome 6 Brands" !important; font-weight: 400; }

/* ==========================================================================
   Scroll reveal (classes set by assets/js/fl-animations.js)
   ========================================================================== */
.fl-reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; }
.fl-reveal-ready [data-reveal].is-visible { animation: flRise .7s var(--fl-ease) var(--fl-delay, 0ms) backwards; }
.fl-reveal-ready .fl-steps[data-reveal].is-visible { animation: none; }
.fl-reveal-ready .fl-steps[data-reveal]:not(.is-visible) { opacity: 1; }
.fl-steps .fl-step { transition: opacity .6s var(--fl-ease), transform .6s var(--fl-ease); }
.fl-reveal-ready .fl-steps:not(.is-visible) .fl-step { opacity: 0; transform: translateY(14px); }
.fl-steps .fl-step:nth-child(2) { transition-delay: .25s; }
.fl-steps .fl-step:nth-child(3) { transition-delay: .5s; }

/* ==========================================================================
   Responsive (mobile first)
   ========================================================================== */
@media (max-width: 719px) {
  :root { --fl-topbar-h: 0px; }
  .fl-topbar { display: none; }
  .fl-header-inner { min-height: 64px; gap: 8px; }
  .fl-logo img { height: 46px; }
  .fl-nav a { padding: 10px 9px; font-size: 15px; }
  .fl-nav a::after { left: 9px; right: 9px; }
  .fl-hero-actions .fl-btn { flex: 1 1 100%; }
  .woocommerce a.button.fl-start-now-btn,
  .woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; }
  .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; }
  .fl-contact-map iframe { height: 320px; }
}

@media (max-width: 380px) {
  .fl-logo img { height: 36px; }
  .fl-nav a { padding-inline: 7px; }
}

@media (max-width: 559px) {
  .fl-card-body { padding: 14px 14px 16px; }
  .fl-card-title { font-size: 1.05rem; }
  .fl-card-price { font-size: 1.3rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 12px 14px 2px; font-size: 1.05rem; }
  .woocommerce ul.products li.product .price { padding: 0 14px; font-size: 1.25rem; }
  .woocommerce ul.products li.product .button { margin-inline: 14px; }
}

@media (min-width: 720px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .fl-grid--4 { gap: 20px; }
  .fl-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .fl-step { padding-left: 0; padding-top: calc(var(--fl-num) + 12px); }
  .fl-steps::before {
    left: var(--fl-num);
    right: 33%;
    top: calc(var(--fl-num) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--fl-navy) 0 6px, transparent 6px 12px);
    transform-origin: left;
    transform: scaleX(0);
  }
  .fl-grid--gifts { grid-template-columns: repeat(2, 1fr); }
  .fl-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .fl-contact-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 960px) {
  .fl-grid--4,
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fl-hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .fl-hero-prints { height: 480px; }
  .woocommerce div.product,
  .woocommerce-page div.product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 72px);
  }
  .woocommerce div.product div.summary { padding-top: 8px; }
  .fl-card--gift { flex-direction: row; }
  .fl-card--gift .fl-card-media { flex: 0 0 52%; }
  .fl-card--gift .fl-card-media img { height: 100%; aspect-ratio: 4 / 3; }
  .fl-visit-inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .wc-block-cart .wc-block-components-sidebar { padding: 28px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
