/* Refinements for persistent navigation, visible product facts and accessible actions. */
:root {
  --fc-favorite: #b4233c;
  --fc-favorite-soft: #fff0f2;
}

.fc-search input {
  font-size: 16px;
}

.fc-desktop-nav a[aria-current="page"],
.fc-menu nav a[aria-current="page"] {
  color: var(--fc-primary);
  font-weight: 600;
  text-decoration: underline;
}

.fc-filter-chips:empty {
  display: none;
}

/* Preserve the quiet desktop gallery. Touch layouts keep their always-visible action below. */
.fc-card-quick {
  background: rgb(255 255 255 / 96%);
  color: #254b3e;
  border: 1px solid #d9ded8;
}

.fc-card-quick:hover {
  background: #254b3e;
  color: #fff;
}

.fc-desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fc-icon-button:focus-visible,
.fc-button:focus-visible,
.fc-card-quick:focus-visible,
.fc-menu nav a:focus-visible {
  outline: 3px solid #1d5b47;
  outline-offset: 3px;
}

.fc-wishlist-link img,
.fc-favorite img {
  filter: invert(17%) sepia(69%) saturate(3763%) hue-rotate(326deg) brightness(82%) contrast(101%);
}

.fc-favorite {
  border: 1px solid #e8b7c0;
  background: #fff;
  box-shadow: 0 2px 10px rgb(30 40 34 / 10%);
}

.fc-favorite:hover,
.fc-favorite[aria-pressed="true"] {
  background: var(--fc-favorite-soft);
  box-shadow: inset 0 0 0 1px var(--fc-favorite), 0 2px 10px rgb(30 40 34 / 10%);
}

.fc-card-caption h3 {
  font-size: 16px;
  line-height: 1.45;
}

.fc-card-caption p {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.fc-product-grid.fc-home-featured-grid:has(> .fc-product-card:only-child) {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  max-width: 900px;
  align-items: center;
}

.fc-home-featured-grid:has(> .fc-product-card:only-child) > .fc-product-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 28px;
}

.fc-home-featured-grid:has(> .fc-product-card:only-child) .fc-product-image {
  grid-row: span 2;
}

.fc-home-featured-grid:has(> .fc-product-card:only-child) .fc-card-caption {
  align-self: end;
}

.fc-product-price {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--fc-primary) !important;
}

.fc-price-selected {
  font-size: 14px;
  font-weight: 600;
}

.fc-product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 18px;
  padding: 22px 0;
  border-top: 1px solid var(--fc-border);
  border-bottom: 1px solid var(--fc-border);
}

.fc-checkout-fields {
  display: grid;
  gap: 28px;
}

.fc-checkout-fields .fc-checkout-step {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--fc-border);
  border-radius: 12px;
}

.fc-checkout-fields .fc-checkout-step h2 {
  font-size: 26px;
}

.fc-checkout-fields .fc-button {
  min-width: min(100%, 300px);
}

@media (max-width: 599px) {
  .fc-utilities > a[aria-label="Tìm hoa"] {
    display: none;
  }

  .fc-wishlist-link {
    display: inline-flex;
  }

  .fc-purchase-actions > .fc-button-light {
    display: inline-flex;
  }

  .fc-checkout-fields .fc-checkout-step {
    padding: 20px;
  }

  .fc-checkout-fields .fc-button {
    width: 100%;
  }
}

.fc-product-facts section {
  min-width: 0;
}

.fc-product-facts h2 {
  margin: 0 0 8px;
  font: 600 15px/1.45 var(--fc-body);
  letter-spacing: 0;
}

.fc-product-facts p,
.fc-product-facts a {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.fc-product-facts a {
  display: inline-block;
  margin-top: 8px;
  color: var(--fc-primary);
  font-weight: 600;
}

.fc-store-note {
  margin-bottom: 0 !important;
}

.fc-checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--fc-muted);
  font-size: 13px;
}

.fc-checkout-progress li[aria-current="step"] {
  color: var(--fc-primary);
  font-weight: 700;
}

.fc-checkout-form-content {
  min-width: 0;
}

.fc-checkout-form-content > section {
  margin: 0 0 30px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--fc-border);
}

.fc-checkout-form-content > section h2 {
  font-size: 24px;
}

.fc-checkout-note {
  margin: 8px 0 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--fc-primary);
  background: var(--fc-soft);
  color: var(--fc-ink);
  font-size: 14px;
}

.fc-checkout-form-content [type="submit"] {
  min-width: min(100%, 300px);
}

@media (max-width: 1023px) {
  .fc-header-inner {
    height: 72px;
  }

  .fc-home-featured-grid:has(> .fc-product-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .fc-header-inner {
    height: 66px;
  }

  .fc-wishlist-link {
    display: inline-flex;
  }

  .fc-utilities {
    gap: 0;
  }

  .fc-utilities .fc-icon-button {
    width: 44px;
    height: 44px;
  }

  .fc-card-caption h3 {
    font-size: 14px;
  }

  .fc-card-caption p {
    font-size: 14px;
  }

  .fc-card-quick {
    font-size: 14px;
  }

  .fc-home-featured-grid:has(> .fc-product-card:only-child) > .fc-product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .fc-home-featured-grid:has(> .fc-product-card:only-child) .fc-product-image {
    grid-row: auto;
  }

  .fc-product-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .fc-purchase-actions .fc-favorite {
    width: 52px;
    min-height: 52px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
  }

  .fc-favorite-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .fc-checkout-progress {
    gap: 6px 12px;
    font-size: 12px;
  }

  .fc-checkout-form-content > section h2 {
    font-size: 21px;
  }
}
