/* ------------------------------------------------------------------
   Flower Factory storefront — same visual language as flowerfactory.ba
   (white ground, sage #90a592 / forest #2f5830, system grotesk display,
   Montserrat body, rounded buttons). Tokens mirror
   frontend/src/app/globals.css in the portfolio app.
   ------------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --brand-light: #90a592;
  --brand-dark: #2f5830;
  --brand-hover: #b0c0b0;
  --brand-ink: #4f6a52;
  --brand-line: rgba(47, 88, 48, 0.18);
  --brand-tint: #f2f5f2;

  --ff-bg: #ffffff;
  --ff-tint: var(--brand-tint);
  --ff-white: #ffffff;
  --ff-green: var(--brand-dark);
  --ff-green-dark: #244526;
  --ff-green-mid: var(--brand-light);
  --ff-muted: var(--brand-light);
  --ff-body: var(--brand-ink);
  --ff-line: var(--brand-line);
  --ff-line-strong: rgba(47, 88, 48, 0.35);
  --ff-danger: #9B3B2E;
  --ff-on-dark: #ffffff;
  --ff-on-dark-soft: rgba(255, 255, 255, 0.85);
  --ff-on-dark-muted: rgba(255, 255, 255, 0.6);
  --ff-ease: cubic-bezier(.2, 0, 0, 1);
  --ff-radius-btn: 10px;
  --ff-radius-card: 12px;
  --ff-radius-media: 12px;
  --ff-container: 1200px;
  --ff-gutter: 1rem;
  --font-display: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body.ff [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.ff {
  margin: 0;
  background: var(--ff-bg);
  color: var(--ff-green);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:where(body.ff a) { color: inherit; }
body.ff a { text-decoration: none; transition: color 0.2s ease; }
body.ff a:not([class]) { color: var(--ff-green); }
body.ff a:not([class]):hover { color: var(--ff-green-mid); }
body.ff a:hover { text-decoration: none; }
body.ff h1, body.ff h2, body.ff h3, body.ff h4 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--ff-green); line-height: 1.05; letter-spacing: -0.04em; }
body.ff p { margin: 0; }
body.ff img { max-width: 100%; }
body.ff button { font-family: inherit; }

.ff-container { width: 100%; max-width: var(--ff-container); margin: 0 auto; padding: 0 var(--ff-gutter); }
@media (min-width: 1600px) { .ff-container { max-width: 1400px; } }
@media (min-width: 1920px) { .ff-container { max-width: 1560px; } }
@media (max-width: 768px) { .ff-container { padding: 0 1.6rem; } }

/* ---- Typography ---- */
.ff-label { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ff-muted); }
.ff-label--light { color: var(--ff-on-dark-muted); }
.ff-mono { font-family: var(--font-body); font-size: 13px; color: var(--ff-muted); }
.ff-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; color: var(--ff-green); text-wrap: balance; }
.ff-display--xl { font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: 0.95; }
.ff-display--lg { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.ff-display--md { font-size: clamp(2rem, 3.6vw, 3rem); }
.ff-display--sm { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.ff-lead { font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--ff-muted); }
.ff-body { font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--ff-body); }
.ff-small { font-size: 13px; line-height: 1.6; color: var(--ff-muted); }
.ff-price { font-family: var(--font-body); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ff-green); }
.ff-price del { color: var(--ff-muted); font-weight: 300; margin-right: 8px; }
.ff-error { font-size: 13px; color: var(--ff-danger); display: block; margin-top: 6px; }

/* ---- Buttons (rounded pill from the portfolio) ---- */
.ff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1;
  padding: 0.85rem 1.8rem; border-radius: var(--ff-radius-btn); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.ff-btn--primary { background: var(--ff-green); color: #fff; border-color: var(--ff-green); }
.ff-btn--primary:hover { background: var(--ff-green-mid); border-color: var(--ff-green-mid); color: #fff; }
.ff-btn--outline { color: var(--ff-green); border-color: var(--ff-green-mid); background: transparent; }
.ff-btn--outline:hover { background: var(--ff-green); color: #fff; border-color: var(--ff-green); }
.ff-btn--ghost { background: transparent; color: var(--ff-green); border-color: var(--ff-line-strong); }
.ff-btn--ghost:hover { border-color: var(--ff-green); color: var(--ff-green); }
.ff-btn--danger { background: transparent; color: var(--ff-danger); border-color: rgba(155, 59, 46, 0.35); }
.ff-btn--danger:hover { background: var(--ff-danger); color: #fff; border-color: var(--ff-danger); }
.ff-btn--block { width: 100%; }
.ff-btn--sm { padding: 0.6rem 1.2rem; font-size: 14px; }
.ff-btn.disabled, .ff-btn:disabled { opacity: 0.45; pointer-events: none; }
.ff-btn.loading { opacity: 0.6; pointer-events: none; }
.ff-link { font-family: var(--font-body); font-size: 15px; color: var(--ff-green); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 8px; align-items: center; }
.ff-link:hover { color: var(--ff-green-mid); }

/* ---- Forms ---- */
.ff-field { display: flex; flex-direction: column; gap: 8px; }
.ff-field > label, .ff-field > .ff-label { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-muted); }
.ff-input, body.ff .ff-form input:not([type=checkbox]):not([type=radio]), body.ff .ff-form select, body.ff .ff-form textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ff-green);
  background: #fff; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn);
  padding: 12px 14px; outline: none; width: 100%; margin: 0; height: auto; line-height: 1.4;
  transition: border-color 0.2s ease; appearance: none; -webkit-appearance: none;
}
body.ff .ff-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%232f5830' stroke-width='1.4' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ff-input:focus, body.ff .ff-form input:focus, body.ff .ff-form select:focus, body.ff .ff-form textarea:focus { border-color: var(--ff-green); box-shadow: none; }
body.ff .ff-form textarea { resize: vertical; min-height: 120px; }
body.ff .ff-form input::placeholder, body.ff .ff-form textarea::placeholder { color: rgba(144, 165, 146, 0.8); }
.ff-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ff-body); cursor: pointer; }
.ff-check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--ff-green); flex: none; }
.ff-req { color: var(--ff-danger); }

/* Choice pills (payment mode, sizes) */
.ff-choice { position: absolute; opacity: 0; pointer-events: none; }
.ff-pill { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); font-size: 14px; font-weight: 500; color: var(--ff-green); cursor: pointer; background: transparent; transition: all 0.2s ease; margin: 0; }
.ff-pill:hover { border-color: var(--ff-green); }
.ff-choice:checked + .ff-pill { background: var(--ff-green); color: #fff; border-color: var(--ff-green); }
.ff-choice:disabled + .ff-pill { opacity: 0.45; cursor: not-allowed; }
.ff-swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ff-line); box-shadow: 0 0 0 2px transparent; cursor: pointer; display: inline-block; margin: 0; transition: box-shadow 0.2s ease; }
.ff-choice:checked + .ff-swatch { box-shadow: 0 0 0 2px var(--ff-green); }
.ff-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- Layout helpers ---- */
.ff-page { padding-top: 48px; padding-bottom: 96px; }
.ff-page--tight { padding-top: 32px; }
.ff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--ff-line); }
.ff-head__text { display: flex; flex-direction: column; gap: 14px; }
.ff-grid { display: grid; gap: 24px; }
.ff-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.ff-card { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-card); }
.ff-tint { background: var(--ff-tint); }
.ff-hr { height: 1px; background: var(--ff-line); border: 0; margin: 0; }
.ff-crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--font-body); font-size: 14px; color: var(--ff-muted); }
.ff-crumbs a { color: var(--ff-green); }
.ff-stack { display: flex; flex-direction: column; gap: 16px; }

/* ---- Header (the portfolio navbar: links left, logo centred, button right) ---- */
.ff-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin: 0 1.5rem;
  border-bottom: 0.7px solid #2d572f;
}
.ff-header__inner { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 2.25rem; max-width: none; }
.ff-header__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 180px; height: 56px; }
.ff-header__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; display: block; }
.ff-nav { display: flex; align-items: center; gap: 1rem; }
.ff-nav__link { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ff-green); padding: 0.5rem 0.5rem; background: none; border: 0; cursor: pointer; }
.ff-nav__dropdown { position: relative; }
.ff-nav__dropdown-toggle::after { content: ""; display: inline-block; margin-left: 0.3em; vertical-align: 0.2em; border-top: 0.3em solid; border-right: 0.3em solid transparent; border-left: 0.3em solid transparent; }
.ff-nav__menu { display: none; position: absolute; left: 0; top: 100%; min-width: 180px; margin-top: 0.5rem; padding: 0.25rem; background: #fff; border: 1px solid var(--ff-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(47, 88, 48, 0.12); z-index: 10; }
.ff-nav__dropdown:hover .ff-nav__menu, .ff-nav__dropdown:focus-within .ff-nav__menu, .ff-nav__dropdown.is-open .ff-nav__menu { display: block; }
body.ff .ff-nav__menu a { display: block; font-family: var(--font-body); font-size: 15px; padding: 0.8rem 1.25rem; border-radius: 6px; color: var(--ff-green); white-space: nowrap; }
body.ff .ff-nav__menu a:hover { background: var(--ff-tint); color: var(--ff-green); }
.ff-nav__link:hover { color: var(--ff-green-mid); }
.ff-nav__link.is-active { color: var(--ff-green-mid); text-decoration: underline; text-underline-offset: 6px; }
.ff-nav__right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.ff-nav__pdf { font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ff-green); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.ff-nav__pdf:hover { color: var(--ff-green-mid); }
.ff-nav__cta { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.5; background: var(--ff-green); color: #fff; padding: 0.6rem 1.6rem; border-radius: var(--ff-radius-btn); white-space: nowrap; transition: background 0.2s ease; }
.ff-nav__cta:hover { background: var(--ff-green-mid); color: #fff; }
.ff-nav__cart { display: inline-flex; align-items: center; gap: 6px; color: var(--ff-green); font-family: var(--font-body); font-size: 13px; white-space: nowrap; }
.ff-nav__cart svg { width: 22px; height: 22px; }
.ff-nav__cart .ff-nav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ff-nav__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ff-green); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.ff-nav__mobile { display: none; }
.ff-nav__toggle { display: none; width: 44px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--ff-line); border-radius: 6px; cursor: pointer; color: var(--ff-green); }
.ff-nav__toggle svg { width: 22px; height: 22px; }
.ff-nav__panel { display: none; }
@media (max-width: 991.98px) {
  .ff-header { margin: 0 1rem; }
  .ff-header__inner { height: auto; padding: 0.6rem 0.75rem; }
  .ff-header__logo { position: static; transform: none; width: 150px; height: 46px; }
  .ff-nav, .ff-nav__right { display: none; }
  .ff-nav__mobile { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
  .ff-nav__panel .ff-nav__cta { margin-top: 0.75rem; text-align: center; }
  .ff-nav__toggle { display: inline-flex; }
  .ff-nav__panel.is-open { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem 0.75rem 1rem; }
  .ff-nav__panel .ff-nav__link { font-size: 17px; padding: 0.5rem 0; text-align: left; }
  .ff-nav__panel-title { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-muted); padding: 0.5rem 0 0.25rem; }
  .ff-nav__panel .ff-nav__link--sub { padding-left: 0.75rem; }
  .ff-nav__panel .ff-nav__pdf { margin-top: 0.75rem; }
  .ff-nav__panel .ff-nav__cart { padding: 0.5rem 0; }
  .ff-nav__panel .ff-nav__cart .ff-nav__label { position: static; width: auto; height: auto; clip: auto; }
}

/* ---- Footer (the portfolio footer: big logo, centred columns) ---- */
.ff-footer { padding: 4rem 1rem 2rem; margin-top: 96px; text-align: center; }
.ff-footer__logo { width: 100%; max-width: 1300px; margin: 0 auto 4rem; }
.ff-footer__logo img { width: 100%; height: auto; display: block; }
.ff-footer__cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; max-width: 1200px; margin: 0 auto; }
.ff-footer__col { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1 1 180px; }
.ff-footer__title { font-family: var(--font-body); font-weight: 500; color: #899e8a; font-size: 2.125rem; letter-spacing: -4px; margin-bottom: 0.5rem; line-height: 1.1; }
body.ff .ff-footer__col a, .ff-footer__col span { font-family: var(--font-body); font-weight: 300; color: #899e8a; font-size: 19px; line-height: 1.5; }
body.ff .ff-footer__col a:hover { color: var(--ff-green); }
.ff-channel { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.ff-channel svg { flex: none; width: 1.2em; height: 1.2em; }
.ff-footer__divider { border: 0; border-top: 1px solid var(--ff-line); max-width: 1200px; margin: 2.5rem auto 1.5rem; }
.ff-footer__bottom { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.ff-footer__bottom span { font-family: var(--font-body); font-size: 0.8rem; color: var(--ff-muted); }
.ff-footer__cards { display: flex; gap: 10px; align-items: center; }
.ff-footer__cards img { height: 22px; width: auto; border: 1px solid var(--ff-line); padding: 3px 6px; border-radius: 4px; box-sizing: content-box; background: #fff; }
@media (max-width: 768px) {
  .ff-footer { margin-top: 64px; padding-top: 2.5rem; }
  .ff-footer__logo { max-width: 300px; margin-bottom: 2.5rem; }
  .ff-footer__title { font-size: 1.6rem; letter-spacing: -2px; }
  body.ff .ff-footer__col a, .ff-footer__col span { font-size: 16px; }
}

/* ---- Shop listing ---- */
.ff-shop { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
.ff-filters { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; scrollbar-color: var(--ff-line-strong) transparent; }
.ff-filters__body { display: flex; flex-direction: column; gap: 32px; }
.ff-filters__group { display: flex; flex-direction: column; gap: 14px; }
.ff-filters__title { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ff-muted); padding-bottom: 12px; border-bottom: 1px solid var(--ff-line); }
.ff-filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-filters ul ul { padding-left: 24px; padding-top: 6px; }
.ff-filters__toggle { display: none; }
.ff-range { padding: 14px 8px 0; display: flex; flex-direction: column; gap: 18px; }
.ff-range .ui-slider { height: 2px; background: var(--ff-line-strong); border: 0; border-radius: 0; position: relative; }
.ff-range .ui-slider .ui-slider-range { background: var(--ff-green); height: 2px; position: absolute; }
.ff-range .ui-slider .ui-slider-handle { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ff-green); top: -7px; margin-left: -8px; position: absolute; cursor: grab; outline: none; }
/* Specific enough to beat the generic .ff-form input rule, which would give the
   readout a bordered box glued to the slider. */
body.ff .ff-form input.ff-range__value:not([type=checkbox]):not([type=radio]), .ff-range__value { font-family: var(--font-body); font-size: 13px; color: var(--ff-green); background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; width: 100%; height: auto; line-height: 1.4; }
.ff-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ff-toolbar__count { font-family: var(--font-body); font-size: 13px; color: var(--ff-muted); }
.ff-toolbar__right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ff-select { font-family: var(--font-body); font-size: 14px; color: var(--ff-green); background: #fff; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); padding: 9px 36px 9px 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%232f5830' stroke-width='1.4' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.ff-search { display: flex; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); overflow: hidden; }
.ff-search input { font-family: var(--font-body); font-size: 14px; color: var(--ff-green); background: transparent; border: 0; padding: 9px 12px; width: 180px; outline: none; }
.ff-search button { background: var(--ff-green); color: #fff; border: 0; padding: 0 14px; cursor: pointer; font-family: var(--font-body); font-size: 14px; }
.ff-products { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 900px) { .ff-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
@media (max-width: 560px) { .ff-products { grid-template-columns: minmax(0, 1fr); } }
.ff-product { display: flex; flex-direction: column; gap: 12px; }
.ff-product__img { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--ff-radius-card); background: var(--ff-tint); overflow: hidden; }
.ff-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 640ms var(--ff-ease); }
.ff-product:hover .ff-product__img img { transform: scale(1.04); }
.ff-product__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ff-product__name { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--ff-green); }
.ff-product__price { font-family: var(--font-body); font-size: 15px; color: var(--ff-green-mid); white-space: nowrap; }
.ff-empty { padding: 64px 0; color: var(--ff-muted); }
/* pagination (Laravel default markup) */
body.ff .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 48px 0 0; flex-wrap: wrap; }
body.ff .pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); font-family: var(--font-body); font-size: 13px; color: var(--ff-green); background: transparent; }
body.ff .pagination .active .page-link { background: var(--ff-green); color: #fff; border-color: var(--ff-green); }
body.ff .pagination .disabled .page-link { opacity: 0.4; }
@media (max-width: 900px) {
  .ff-shop { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ff-filters { position: static; max-height: none; overflow: visible; }
  .ff-filters__toggle { display: inline-flex; }
  .ff-filters__body { display: none; }
  .ff-filters__body.is-open { display: flex; flex-direction: column; gap: 28px; }
  .ff-search input { width: 140px; }
}

/* ---- Product page ---- */
.ff-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-top: 32px; align-items: start; }
.ff-gallery { display: flex; flex-direction: column; gap: 12px; }
.ff-gallery__main { border-radius: var(--ff-radius-media); overflow: hidden; background: var(--ff-tint); aspect-ratio: 4 / 5; }
.ff-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.ff-gallery__thumbs li { border-radius: var(--ff-radius-card); overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; border: 1px solid var(--ff-line); background: var(--ff-tint); }
.ff-gallery__thumbs li.is-active { border-color: var(--ff-green); }
.ff-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-pdp__info { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 110px; }
.ff-pdp__price { font-family: var(--font-body); font-weight: 500; font-size: 24px; color: var(--ff-green); }
.ff-pdp__price del { color: var(--ff-muted); font-weight: 300; font-size: 17px; margin-right: 10px; }
.ff-meta { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid var(--ff-line); }
.ff-meta__row { display: flex; flex-direction: column; gap: 10px; }
.ff-qty { display: flex; gap: 12px; flex-wrap: wrap; }
body.ff .ff-form .ff-qty input, .ff-qty input { width: 88px; text-align: center; font-family: var(--font-body); font-size: 15px; padding: 12px; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); background: transparent; color: var(--ff-green); }
.ff-desc { max-width: 720px; padding-top: 64px; display: flex; flex-direction: column; gap: 18px; }
.ff-desc p { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--ff-body); }
.ff-related { padding-top: 96px; }
.ff-toast.is-visible { display: block; animation: ffToastIn 200ms var(--ff-ease); }
@keyframes ffToastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ff-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1100; background: var(--ff-green); color: #fff; padding: 14px 20px; border-radius: var(--ff-radius-btn); font-size: 14px; box-shadow: 0 12px 30px rgba(47, 88, 48, 0.25); display: none; max-width: calc(100vw - 40px); }
body.ff .ff-toast a { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .ff-pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ff-pdp__info { position: static; }
}

/* ---- Cart ---- */
.ff-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 32px; align-items: start; }
.ff-lines { display: flex; flex-direction: column; }
.ff-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-top: 1px solid var(--ff-line); align-items: center; }
.ff-line:last-child { border-bottom: 1px solid var(--ff-line); }
.ff-line__img { width: 96px; aspect-ratio: 4 / 5; border-radius: var(--ff-radius-card); overflow: hidden; background: var(--ff-tint); }
.ff-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-line__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff-line__name { font-size: 16px; font-weight: 500; }
.ff-line__var { font-size: 13px; color: var(--ff-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ff-line__var i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid var(--ff-line); vertical-align: middle; }
.ff-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ff-line__qty { width: 72px; text-align: center; font-family: var(--font-body); font-size: 14px; padding: 8px; border: 1px solid var(--ff-line-strong); border-radius: var(--ff-radius-btn); background: transparent; color: var(--ff-green); }
.ff-line__remove { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-muted); cursor: pointer; }
.ff-line__remove:hover { color: var(--ff-danger); }
.ff-cart__actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 20px; flex-wrap: wrap; }
.ff-summary { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-media); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.ff-summary table { width: 100%; border-collapse: collapse; }
.ff-summary th { text-align: left; font-weight: 400; font-size: 14px; color: var(--ff-body); padding: 10px 0; border-bottom: 1px solid var(--ff-line); vertical-align: top; }
.ff-summary td { text-align: right; font-family: var(--font-body); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--ff-line); vertical-align: top; }
.ff-summary tr.is-total th, .ff-summary tr.is-total td { border-bottom: 0; padding-top: 16px; font-size: 16px; }
.ff-summary tr.is-total td { font-size: 20px; }
.ff-summary tr.is-total td h6 { font-family: var(--font-body); font-size: 20px; font-weight: 500; margin: 0; }
.ff-summary .ff-small { display: block; }
@media (max-width: 900px) {
  .ff-cart { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ff-summary { position: static; }
  .ff-line { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  /* The thumbnail must shrink with its column, or it runs under the name and price. */
  .ff-line__img { width: 72px; }
  .ff-line__right { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---- Checkout ---- */
.ff-checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-top: 32px; align-items: start; }
.ff-section { display: flex; flex-direction: column; gap: 20px; padding: 32px 0; border-top: 1px solid var(--ff-line); }
.ff-section:first-child { border-top: 0; padding-top: 0; }
.ff-section__title { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }
.ff-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.ff-fields .is-full { grid-column: 1 / -1; }
.ff-payment-info { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-card); }
.ff-payment-info img { height: 22px; width: auto; margin-right: 8px; }
#card-element { padding: 4px 0; }
.ff-order { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-media); padding: 28px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.ff-coupon { display: flex; gap: 10px; }
.ff-coupon input { flex: 1; }
.ff-order table { width: 100%; border-collapse: collapse; }
.ff-order th { text-align: left; font-weight: 400; font-size: 14px; color: var(--ff-body); padding: 10px 0; border-bottom: 1px solid var(--ff-line); vertical-align: top; }
.ff-order td { text-align: right; font-family: var(--font-body); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--ff-line); vertical-align: top; white-space: nowrap; }
.ff-order thead th { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-muted); }
.ff-order thead th:last-child { text-align: right; }
.ff-order tr.is-total th, .ff-order tr.is-total td { border-bottom: 0; padding-top: 16px; font-size: 16px; }
.ff-order tr.is-total td h6 { font-family: var(--font-body); font-size: 20px; font-weight: 500; margin: 0; }
.ff-order .ff-small { display: block; }
.ff-order td .ff-small, .ff-order th .ff-small { white-space: normal; }
@media (max-width: 900px) {
  .ff-checkout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ff-order { position: static; }
  .ff-fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Order review / completed ---- */
.ff-review { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; }
.ff-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ff-kv > div { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius-card); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.ff-kv b { font-weight: 500; color: var(--ff-green); font-size: 15px; }
.ff-table { width: 100%; border-collapse: collapse; }
.ff-table th { text-align: left; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-muted); padding: 12px 0; border-bottom: 1px solid var(--ff-line); font-weight: 500; }
.ff-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--ff-line); font-size: 14px; color: var(--ff-green); vertical-align: top; }
.ff-table td.num, .ff-table th.num { text-align: right; font-family: var(--font-body); padding-right: 0; }
.ff-table tfoot td { border-bottom: 0; }
.ff-table-wrap { overflow-x: auto; }

/* ---- Prose (legal) ---- */
.ff-prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--ff-body); white-space: pre-line; }
.ff-prose h1, .ff-prose h2, .ff-prose h3 { white-space: normal; }
.ff-prose h3 { font-size: 26px; padding-top: 16px; }

/* ---- Legacy pages under the new shell ---- */
body.ff-legacy #main-content { padding-top: 0; }

/* ---- Cookie consent ---- */
.ff-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--brand-light); border-radius: 12px; box-shadow: 0 12px 32px rgba(47, 88, 48, 0.14); padding: 18px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ff-consent__text { flex: 1 1 320px; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--ff-body); }
.ff-consent__text strong { display: block; color: var(--ff-green); margin-bottom: 4px; }
.ff-consent__text p { margin: 0; }
.ff-consent__text a { color: var(--ff-green); text-decoration: underline; text-underline-offset: 3px; }
.ff-consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 480px) { .ff-consent__actions { width: 100%; } .ff-consent__actions > * { flex: 1 1 0; justify-content: center; } }
