/*
 * The shop.
 *
 * Built on the theme's own tokens — --fl-primary green, --fl-heading ink,
 * Kumbh Sans, the 14px card radius and the lift-on-hover the home page cards
 * use — so the shop reads as part of the site rather than a bolted-on store.
 *
 * Product photos are CJ's own, shot on white, so every image well is white
 * with `object-fit: contain`: a cropped suitcase is a worse photo than a
 * small one.
 */

.fl-shop-section { padding: 48px 0 88px; }
.fl-shop-section .fl-breadcrumb { margin-bottom: 18px; }
.fl-shop-title { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 28px; }
.fl-shop-narrow { max-width: 760px; }
.fl-shop-center { text-align: center; margin-top: 30px; }
.fl-shop-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fl-primary);
  margin-bottom: 12px;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.fl-shop-hero {
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--fl-border);
  background:
    radial-gradient(900px 360px at 12% -20%, rgba(99, 171, 69, 0.18), transparent 62%),
    radial-gradient(700px 300px at 95% 0%, rgba(247, 146, 30, 0.10), transparent 60%),
    var(--fl-gray);
}
.fl-shop-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 12px; max-width: 18ch; }
.fl-shop-hero p { font-size: 17px; line-height: 1.7; margin: 0; max-width: 56ch; }

.fl-shop-search {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(28, 35, 31, 0.07);
}
.fl-shop-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--fl-text); }
.fl-shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 10px 10px 46px;
  font-size: 15px;
  color: var(--fl-heading);
  outline: none;
}
.fl-shop-search .btn-theme { border-radius: 999px !important; padding: 11px 26px !important; }

/* ------------------------------------------------------------------ *
 * Shelves and toolbar
 * ------------------------------------------------------------------ */

.fl-shop-shelves {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 18px;
  scrollbar-width: thin;
}
.fl-shop-shelves a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  background: #fff;
  color: var(--fl-heading);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.fl-shop-shelves a span { font-size: 12px; color: var(--fl-text); }
.fl-shop-shelves a:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-shop-shelves a.is-active { background: var(--fl-heading); border-color: var(--fl-heading); color: #fff; }
.fl-shop-shelves a.is-active span { color: rgba(255, 255, 255, 0.7); }

.fl-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.fl-shop-toolbar p { margin: 0; font-size: 14px; }
.fl-shop-toolbar p a { margin-left: 8px; color: var(--fl-primary); font-weight: 500; }
.fl-shop-toolbar form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.fl-shop-toolbar select {
  padding: 8px 34px 8px 14px;
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  background: #fff;
  color: var(--fl-heading);
  font-size: 14px;
}

/* ------------------------------------------------------------------ *
 * Product grid and card
 * ------------------------------------------------------------------ */

.fl-shop-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .fl-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fl-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.fl-shop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.fl-shop-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(28, 35, 31, 0.10); border-color: transparent; }
.fl-shop-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.fl-shop-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: opacity 0.4s, transform 0.5s;
}
.fl-shop-card-media img.is-alt { opacity: 0; }
.fl-shop-card:hover .fl-shop-card-media img { transform: scale(1.03); }
.fl-shop-card:hover .fl-shop-card-media img.is-alt { opacity: 1; }
.fl-shop-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--fl-border); flex: 1; }
.fl-shop-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fl-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}

.fl-shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--fl-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fl-shop-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.fl-shop-price small { font-size: 12px; color: var(--fl-text); }
.fl-shop-price strong { color: var(--fl-heading); font-size: 17px; font-weight: 700; }
.fl-shop-price s { color: var(--fl-text); font-size: 14px; }
.fl-shop-price.is-large strong { font-size: 30px; }
.fl-shop-price.is-large s { font-size: 18px; }

.fl-shop-pages { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; font-size: 14px; }
.fl-shop-pages a,
.fl-shop-pages .is-off {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--fl-border);
  border-radius: 999px;
  color: var(--fl-heading);
  font-weight: 500;
}
.fl-shop-pages a:hover { border-color: var(--fl-primary); color: var(--fl-primary); }
.fl-shop-pages .is-off { opacity: 0.4; }

.fl-shop-empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed var(--fl-border);
  border-radius: 14px;
  background: #fff;
}
.fl-shop-empty > i { font-size: 46px; color: var(--fl-primary); }
.fl-shop-empty h2 { font-size: 22px; margin: 12px 0 8px; }
.fl-shop-empty p { margin: 0 0 22px; }

.fl-shop-promises {
  list-style: none;
  margin: 56px 0 0;
  padding: 26px 28px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 14px;
  background: var(--fl-gray);
}
@media (max-width: 767px) { .fl-shop-promises { grid-template-columns: 1fr; } }
.fl-shop-promises li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.fl-shop-promises i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 171, 69, 0.12);
  color: var(--fl-primary);
  font-size: 22px;
}
.fl-shop-promises strong { display: block; color: var(--fl-heading); }

/* The buy box carries its own copy, narrower. */
.fl-shop-buy .fl-shop-promises { margin-top: 28px; grid-template-columns: 1fr; padding: 20px 22px; gap: 16px; }

/* ------------------------------------------------------------------ *
 * Product page
 * ------------------------------------------------------------------ */

.fl-shop-product { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 991px) { .fl-shop-product { grid-template-columns: 1fr; gap: 30px; } }

.fl-shop-gallery { position: sticky; top: 24px; }
@media (max-width: 991px) { .fl-shop-gallery { position: static; } }
.fl-shop-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 18px;
  overflow: hidden;
}
.fl-shop-stage img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.fl-shop-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.fl-shop-thumbs button {
  flex: 0 0 74px;
  height: 74px;
  padding: 4px;
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.fl-shop-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.fl-shop-thumbs button:hover,
.fl-shop-thumbs button.is-active { border-color: var(--fl-primary); box-shadow: 0 0 0 1px var(--fl-primary); }

.fl-shop-buy h1 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; margin: 0 0 16px; }
.fl-shop-buy a.fl-shop-eyebrow:hover { color: var(--fl-heading); }
.fl-shop-summary { font-size: 16px; line-height: 1.75; margin: 18px 0 0; }

.fl-shop-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--fl-border); }
.fl-shop-option { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.fl-shop-option legend { font-size: 14px; font-weight: 700; color: var(--fl-heading); margin-bottom: 10px; padding: 0; }
.fl-shop-option legend span { font-weight: 400; color: var(--fl-text); }
.fl-shop-values { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-shop-values label { margin: 0; position: relative; cursor: pointer; }
.fl-shop-values input { position: absolute; opacity: 0; pointer-events: none; }
.fl-shop-values span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--fl-heading);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.fl-shop-values label:hover span { border-color: var(--fl-heading); }
.fl-shop-values input:checked + span { border-color: var(--fl-heading); background: var(--fl-heading); color: #fff; }
.fl-shop-values input:focus-visible + span { outline: 2px solid var(--fl-primary); outline-offset: 2px; }
.fl-shop-values label.is-unavailable span { opacity: 0.4; text-decoration: line-through; }

.fl-shop-qty-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fl-shop-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.fl-shop-qty button { width: 44px; border: 0; background: transparent; font-size: 20px; color: var(--fl-heading); cursor: pointer; }
.fl-shop-qty button:hover { background: var(--fl-gray); }
.fl-shop-qty input {
  width: 52px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--fl-heading);
  -moz-appearance: textfield;
}
.fl-shop-qty input::-webkit-outer-spin-button,
.fl-shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fl-shop-add { flex: 1; min-width: 200px; display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; }
.fl-shop-add[disabled] { opacity: 0.5; cursor: not-allowed; }
.fl-shop-add i { font-size: 20px; }
.fl-shop-stock { margin: 12px 0 0; font-size: 14px; min-height: 1.5em; }

.fl-shop-details { margin-top: 64px; max-width: 860px; }
.fl-shop-details h2,
.fl-shop-related h2 { font-size: 24px; margin: 0 0 18px; }
.fl-shop-prose { font-size: 16px; line-height: 1.8; }
.fl-shop-prose p { margin: 0 0 14px; }
.fl-shop-prose ul { margin: 0 0 14px; padding-left: 20px; }
.fl-shop-prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; }
.fl-shop-prose td,
.fl-shop-prose th { border: 1px solid var(--fl-border); padding: 8px 10px; }
.fl-shop-related { margin-top: 64px; }

/* ------------------------------------------------------------------ *
 * Basket, checkout and the order page
 * ------------------------------------------------------------------ */

.fl-shop-cart { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 991px) { .fl-shop-cart { grid-template-columns: 1fr; } }

.fl-shop-lines { display: flex; flex-direction: column; border-top: 1px solid var(--fl-border); }
.fl-shop-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 84px 100px 36px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--fl-border);
}
@media (max-width: 575px) {
  .fl-shop-line { grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 12px; }
  .fl-shop-line-qty { grid-column: 2; }
  .fl-shop-line-total { grid-column: 2; }
  .fl-shop-line-remove { grid-row: 1; grid-column: 3; }
}
.fl-shop-line-media { display: block; aspect-ratio: 1 / 1; border: 1px solid var(--fl-border); border-radius: 12px; background: #fff; overflow: hidden; }
.fl-shop-line-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.fl-shop-line-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fl-shop-line-name { color: var(--fl-heading); font-weight: 600; line-height: 1.4; }
.fl-shop-line-name:hover { color: var(--fl-primary); }
.fl-shop-line-opts,
.fl-shop-line-unit { font-size: 13px; }
.fl-shop-line-qty input {
  width: 72px;
  padding: 9px 10px;
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--fl-heading);
}
.fl-shop-line-total { text-align: right; color: var(--fl-heading); }
.fl-shop-line-remove {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--fl-text);
  font-size: 18px;
  cursor: pointer;
}
.fl-shop-line-remove:hover { border-color: var(--fl-border); color: #c62828; }

.fl-shop-summary-card {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid var(--fl-border);
  border-radius: 16px;
  background: #fff;
}
.fl-shop-narrow .fl-shop-summary-card { position: static; }
.fl-shop-summary-card h2 { font-size: 20px; margin: 0 0 18px; }
.fl-shop-summary-card dl { margin: 0 0 22px; }
.fl-shop-summary-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.fl-shop-summary-card dt { font-weight: 400; }
.fl-shop-summary-card dd { margin: 0; color: var(--fl-heading); font-weight: 600; }
.fl-shop-summary-card .is-total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--fl-border); font-size: 18px; }
.fl-shop-summary-card .is-total dt,
.fl-shop-summary-card .is-total dd { color: var(--fl-heading); font-weight: 700; }
.fl-shop-wide { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.fl-shop-continue { display: block; text-align: center; margin-top: 14px; font-size: 14px; color: var(--fl-text); }
.fl-shop-continue:hover { color: var(--fl-primary); }

.fl-shop-mini { list-style: none; margin: 0 0 18px; padding: 0 0 6px; border-bottom: 1px solid var(--fl-border); }
.fl-shop-mini li { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; font-size: 14px; }
.fl-shop-mini-media { position: relative; flex: 0 0 56px; height: 56px; border: 1px solid var(--fl-border); border-radius: 10px; background: #fff; }
.fl-shop-mini-media img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.fl-shop-mini-media b {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fl-heading);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.fl-shop-mini-name { flex: 1; min-width: 0; color: var(--fl-heading); line-height: 1.4; }
.fl-shop-mini-name small { display: block; color: var(--fl-text); }

.fl-shop-checkout fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.fl-shop-checkout legend { font-size: 20px; font-weight: 700; color: var(--fl-heading); margin: 0 0 16px; padding: 0; }
.fl-shop-fields { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575px) { .fl-shop-fields { grid-template-columns: 1fr; } }
.fl-shop-field { display: flex; flex-direction: column; gap: 6px; }
.fl-shop-field.is-wide { grid-column: 1 / -1; }
.fl-shop-field label { margin: 0; font-size: 14px; font-weight: 600; color: var(--fl-heading); }
.fl-shop-field label small { font-weight: 400; color: var(--fl-text); }
.fl-shop-field input,
.fl-shop-field select,
.fl-shop-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fl-border);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--fl-heading);
}
.fl-shop-field input:focus,
.fl-shop-field select:focus,
.fl-shop-field textarea:focus { outline: none; border-color: var(--fl-primary); box-shadow: 0 0 0 3px rgba(99, 171, 69, 0.15); }
.fl-shop-error { font-size: 13px; color: #c62828; }
.fl-shop-checkout .fl-pay { margin-bottom: 24px; }

.fl-shop-done { text-align: center; margin-bottom: 30px; }
.fl-shop-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 42px;
  margin-bottom: 16px;
}
.fl-shop-done-mark.is-good { background: rgba(99, 171, 69, 0.14); color: var(--fl-primary); }
.fl-shop-done-mark.is-wait { background: rgba(247, 146, 30, 0.14); color: var(--fl-secondary); }
.fl-shop-done-mark.is-bad { background: rgba(198, 40, 40, 0.10); color: #c62828; }
.fl-shop-done h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.fl-shop-done p { margin: 0 0 6px; }
.fl-shop-address h2 { font-size: 16px; margin: 0 0 8px; }
.fl-shop-address p { margin: 0; line-height: 1.7; }

/* CJ's descriptions arrive with page-sized headings; inside product details
   they are section labels, not titles. */
.fl-shop-prose h1,
.fl-shop-prose h2,
.fl-shop-prose h3,
.fl-shop-prose h4 { font-size: 18px; line-height: 1.4; margin: 22px 0 8px; }
.fl-shop-prose > :first-child { margin-top: 0; }

.fl-shop-paylater {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(247, 146, 30, 0.45);
    border-radius: 10px;
    background: rgba(247, 146, 30, 0.08);
    font-size: 14px;
    line-height: 1.5;
}

.fl-shop-paylater i {
    color: var(--fl-secondary);
    font-size: 20px;
}

.fl-shop-stock.is-error {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(216, 71, 63, 0.08);
    color: #c0392b;
    font-weight: 600;
}

.fl-shop-delivery-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--fl-text);
}

.fl-shop-badge.is-soldout {
    background: #1c231f;
}
