/* Fire & Dine Shop page.
   home.css remains the authority for the shared chrome, typography, buttons
   and closing CTA. This file only composes those rules for the catalogue. */

.fd-shop-page {
  --home-gold-ink: var(--home-gold);
  color: var(--home-ink);
  background: var(--home-paper);
}

.fd-shop-page main .eyebrow {
  color: var(--home-gold) !important;
  -webkit-text-fill-color: var(--home-gold) !important;
}

/* Hero */
html body.fd-shop-page main .shop-hero.hero-image-selected {
  min-height: calc(100vh - 150px) !important;
  min-height: calc(100svh - 150px) !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  background-image:
    linear-gradient(180deg, rgba(7, 8, 8, 0.34), rgba(7, 8, 8, 0.2) 48%, rgba(7, 8, 8, 0.46)),
    var(--hero-desktop) !important;
  background-position: var(--hero-position, center center) !important;
  background-size: cover !important;
}

.fd-shop-page main .shop-hero > .shell {
  width: min(calc(100vw - 72px), 1500px) !important;
  min-height: inherit;
  display: grid;
  place-items: center;
}

.fd-shop-page main .shop-hero .hero-copy {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  justify-self: center;
  margin-inline: auto !important;
  padding-block: 48px;
  text-align: center;
}

.fd-shop-page main .shop-hero .hero-eyebrow {
  display: block;
  margin-bottom: 22px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
}

.fd-shop-page main .shop-hero h1 {
  max-width: 1120px !important;
  margin: 0 auto !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(60px, 5vw, 78px) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}

.fd-shop-page main .shop-hero .hero-copy > p {
  max-width: 720px !important;
  margin: 26px auto 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* Catalogue shell and hierarchy */
html body.fd-shop-page main .shop-section {
  padding-block: clamp(72px, 6vw, 96px) !important;
  background: var(--home-paper) !important;
}

.fd-shop-page main .shop-section > .shell {
  width: calc(100% - 64px) !important;
  max-width: 1480px !important;
}

.fd-shop-page .shop-section .breadcrumbs {
  margin-bottom: 30px !important;
}

.fd-shop-page .fd-shop {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 32px !important;
  margin-top: 0 !important;
}

.fd-shop-page .fd-shop-sidebar {
  position: sticky;
  top: 130px;
  padding: 0 !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(16, 17, 16, 0.12) !important;
  border-radius: 4px !important;
  box-shadow: 0 14px 34px rgba(20, 18, 14, 0.07);
}

.fd-shop-page .fd-category-filter > summary {
  display: none;
}

.fd-shop-page .fd-category-panel {
  padding: 24px 22px 22px;
}

.fd-shop-page .fd-category-panel h2 {
  position: relative;
  margin: 0 0 25px !important;
  padding-bottom: 15px;
  color: var(--home-ink) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.fd-shop-page .fd-category-panel h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--home-gold);
}

.fd-shop-page .fd-filter-group {
  margin: 0 0 9px !important;
}

.fd-shop-page .fd-filter-group:last-child {
  margin-bottom: 0 !important;
}

.fd-shop-page .fd-filter-group a {
  position: relative;
  min-height: 42px;
  align-items: center;
  padding: 10px 10px 10px 12px !important;
  color: #242420 !important;
  border-left: 3px solid transparent;
  border-radius: 2px !important;
  font-size: 14px !important;
  line-height: 1.4;
  transition: color 180ms ease, background-color 180ms ease, padding-left 180ms ease;
}

.fd-shop-page .fd-filter-group-all a,
.fd-shop-page .fd-parent-filter {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.fd-shop-page .fd-filter-group a:hover {
  padding-left: 16px !important;
  color: var(--home-gold-ink) !important;
  background: rgba(252, 188, 77, 0.09) !important;
}

.fd-shop-page .fd-filter-group a[aria-current="page"] {
  padding-left: 14px !important;
  color: var(--home-gold-ink) !important;
  background: rgba(252, 188, 77, 0.13) !important;
  border-left-color: var(--home-gold) !important;
  font-weight: 700 !important;
}

.fd-shop-page .fd-filter-children {
  position: relative;
  margin: 3px 0 5px 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(252, 188, 77, 0.28);
}

.fd-shop-page .fd-filter-children .fd-subfilter {
  min-height: 37px;
  padding: 8px 8px 8px 10px !important;
  color: #69655f !important;
  font-size: 13px !important;
  font-weight: 500;
}

.fd-shop-page .fd-filter-children .fd-subfilter:hover {
  padding-left: 14px !important;
}

.fd-shop-page .fd-filter-count {
  color: #777269 !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
  opacity: 1 !important;
}

.fd-shop-page .fd-filter-group a[aria-current="page"] .fd-filter-count {
  color: var(--home-gold-ink) !important;
}

/* Results toolbar */
.fd-shop-page .fd-subrange-nav {
  margin: 0 0 20px !important;
  gap: 9px !important;
}

.fd-shop-page .fd-shop-toolbar {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px 18px !important;
  min-height: 68px;
  margin: 0 0 28px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid rgba(16, 17, 16, 0.12) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 26px rgba(20, 18, 14, 0.05);
}

.fd-shop-page .fd-count {
  display: flex;
  min-width: 92px;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  color: #5f5b54 !important;
  font-size: 12px !important;
  line-height: 1.25;
  white-space: nowrap;
}

.fd-shop-page .fd-count strong {
  color: var(--home-ink);
  font-size: 15px;
}

.fd-shop-page .fd-search {
  display: grid;
  min-width: 260px;
  grid-template-columns: minmax(200px, 1fr) auto;
  gap: 8px;
}

.fd-shop-page .fd-search input,
.fd-shop-page .fd-shop-control select {
  height: 46px !important;
  min-height: 46px !important;
  color: #2a2926;
  background: #fff;
  border: 1px solid #d8d3ca !important;
  border-radius: 3px !important;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fd-shop-page .fd-search input {
  min-width: 0;
  padding-inline: 14px !important;
}

.fd-shop-page .fd-search input:focus,
.fd-shop-page .fd-shop-control select:focus {
  border-color: var(--home-gold) !important;
  box-shadow: 0 0 0 3px rgba(252, 188, 77, 0.17);
}

.fd-shop-page .fd-shop-toolbar .btn {
  min-height: 46px !important;
  margin: 0 !important;
  white-space: nowrap;
}

.fd-shop-page .fd-shop-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 13px;
}

.fd-shop-page .fd-shop-control {
  gap: 7px;
  color: #5f5b54;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.fd-shop-page .fd-shop-control select {
  min-width: 210px;
  padding-inline: 12px 34px !important;
  font-weight: 500;
}

.fd-shop-page .fd-shop-check {
  min-height: 46px;
  padding-inline: 8px;
}

.fd-shop-page .fd-shop-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--home-gold);
}

.fd-shop-page .fd-clear-filters {
  padding-inline: 16px !important;
  color: var(--home-ink) !important;
  border-color: rgba(16, 17, 16, 0.3) !important;
}

/* Homepage product-card component proportions, on a light catalogue surface. */
.fd-shop-page .fd-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)) !important;
  justify-content: start;
  gap: 28px 24px !important;
}

.fd-shop-page .fd-product-grid > .product {
  width: 100%;
  max-width: 330px;
  height: 100%;
  background: #fff !important;
  border: 1px solid rgba(28, 26, 21, 0.12) !important;
  border-radius: 4px !important;
  box-shadow: 0 12px 30px rgba(20, 18, 14, 0.07);
}

.fd-shop-page .fd-product-grid > .product:hover,
.fd-shop-page .fd-product-grid > .product:focus-within {
  border-color: var(--home-gold) !important;
  box-shadow: 0 17px 38px rgba(20, 18, 14, 0.12);
}

.fd-shop-page .fd-product-grid .product-media {
  overflow: hidden;
  background: #eeeae2;
}

.fd-shop-page .fd-product-grid .product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  object-position: center;
  transition: transform 240ms ease;
}

.fd-shop-page .fd-product-grid .product:hover .product-media img {
  transform: scale(1.025);
}

.fd-shop-page .fd-product-grid .product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px 22px !important;
  background: #fff !important;
}

.fd-shop-page .fd-product-grid .product-info .eyebrow {
  color: var(--home-gold-ink) !important;
  -webkit-text-fill-color: var(--home-gold-ink) !important;
  font-size: 10px !important;
}

.fd-shop-page .fd-product-grid .product-info h3 {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #171714 !important;
  font-size: 17px !important;
  line-height: 1.32 !important;
}

.fd-shop-page .fd-product-grid .product-info h3 a {
  color: inherit !important;
}

.fd-shop-page .fd-product-grid .product-info .spec {
  display: -webkit-box;
  min-height: calc(1.55em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #69655f !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.fd-shop-page .fd-product-grid .product-info .price {
  margin-top: auto !important;
  padding-top: 10px;
  color: var(--home-gold-ink) !important;
  font-size: 16px !important;
}

.fd-shop-page .fd-product-grid .fd-product-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  margin-top: 0 !important;
  padding-top: 12px;
}

.fd-shop-page .fd-product-grid .fd-product-actions .btn {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background: var(--home-gold) !important;
  border-color: var(--home-gold) !important;
}

.fd-shop-page .fd-product-grid .fd-product-actions .btn:hover,
.fd-shop-page .fd-product-grid .fd-product-actions .btn:focus-visible {
  color: var(--home-gold) !important;
  -webkit-text-fill-color: var(--home-gold) !important;
  background: #111 !important;
  border-color: #111 !important;
}

/* Pagination */
.fd-shop-page .fd-pagination {
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 30px;
  border-top-color: var(--home-line);
}

.fd-shop-page .fd-pagination a,
.fd-shop-page .fd-pagination-current {
  min-width: 44px;
  height: 44px;
  border-radius: 3px;
}

.fd-shop-page .fd-pagination a:hover,
.fd-shop-page .fd-pagination a:focus-visible {
  color: var(--home-ink);
  background: rgba(252, 188, 77, 0.12);
  border-color: var(--home-gold);
}

.fd-shop-page .fd-pagination-current {
  color: #111;
  background: var(--home-gold);
  border-color: var(--home-gold);
}

/* Shared About brochure component, with the revised dark presentation. */
html body.fd-shop-page main .shop-brochures-dark {
  padding-block: clamp(90px, 6vw, 108px) !important;
  color: #fff !important;
  background: #0d0e0c !important;
  background-image: none !important;
}

.fd-shop-page .shop-brochures-dark > .shell {
  width: min(calc(100% - 64px), 1360px) !important;
  max-width: 1360px !important;
}

.fd-shop-page .shop-brochures-dark .section-head {
  max-width: 800px !important;
}

.fd-shop-page .shop-brochures-dark .section-head h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(40px, 3.15vw, 48px) !important;
}

.fd-shop-page .shop-brochures-dark .section-head p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.67) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.67) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.fd-shop-page .shop-brochures-dark .fd-brochure-grid {
  width: min(100%, 1240px) !important;
  margin: 0 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.fd-shop-page .shop-brochures-dark .fd-brochure-item {
  display: grid !important;
  min-height: 420px;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 34px !important;
  color: #fff;
  background: var(--home-ink-soft) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
}

.fd-shop-page .shop-brochures-dark .brochure-cover {
  width: 100% !important;
  max-width: 220px !important;
  max-height: 330px;
  object-fit: contain !important;
  border-radius: 3px;
}

.fd-shop-page .shop-brochures-dark .brochure-copy {
  align-items: flex-start;
  gap: 12px;
}

.fd-shop-page .shop-brochures-dark .brochure-copy h3 {
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1.16 !important;
}

.fd-shop-page .shop-brochures-dark .brochure-copy p {
  color: rgba(255, 255, 255, 0.67) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.fd-shop-page .fd-shop-brochure-item .brochure-copy .eyebrow,
.fd-shop-page .shop-brochures-dark .brochure-copy .eyebrow {
  color: var(--home-gold) !important;
  -webkit-text-fill-color: var(--home-gold) !important;
}

.fd-shop-page .site-final-cta {
  min-height: 420px;
}

.fd-shop-page .site-final-cta p {
  font-size: 16px !important;
  line-height: 1.65 !important;
}

@media (max-width: 1180px) {
  html body.fd-shop-page main .shop-hero.hero-image-selected {
    min-height: calc(100vh - 118px) !important;
    min-height: calc(100svh - 118px) !important;
    background-image:
      linear-gradient(180deg, rgba(7, 8, 8, 0.34), rgba(7, 8, 8, 0.22) 48%, rgba(7, 8, 8, 0.48)),
      var(--hero-tablet) !important;
  }

  .fd-shop-page main .shop-hero h1 {
    font-size: clamp(54px, 6vw, 68px) !important;
  }

  .fd-shop-page .fd-shop-sidebar {
    top: 92px;
  }
}

@media (max-width: 1100px) {
  .fd-shop-page .fd-shop {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .fd-shop-page .fd-shop-sidebar {
    position: static;
    order: 0;
  }

  .fd-shop-page .fd-shop-main {
    order: 1;
  }

  .fd-shop-page .fd-category-filter > summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    color: var(--home-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
  }

  .fd-shop-page .fd-category-filter > summary::-webkit-details-marker {
    display: none;
  }

  .fd-shop-page .fd-category-filter > summary span i {
    margin-right: 8px;
    color: var(--home-gold-ink);
  }

  .fd-shop-page .fd-category-filter-chevron {
    color: var(--home-gold-ink);
    transition: transform 180ms ease;
  }

  .fd-shop-page .fd-category-filter[open] .fd-category-filter-chevron {
    transform: rotate(180deg);
  }

  .fd-shop-page .fd-category-panel {
    border-top: 1px solid var(--home-line);
  }

  .fd-shop-page .fd-category-panel h2 {
    display: none;
  }

  .fd-shop-page .fd-filter-group {
    max-width: 420px;
  }

  .fd-shop-page .fd-shop-toolbar {
    grid-template-columns: auto minmax(280px, 1fr);
  }

  .fd-shop-page .fd-shop-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .fd-shop-page .shop-brochures-dark .fd-brochure-grid {
    grid-template-columns: minmax(0, 680px) !important;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  html body.fd-shop-page main .shop-hero.hero-image-selected {
    min-height: calc(100vh - 110px) !important;
    min-height: calc(100svh - 110px) !important;
  }

  .fd-shop-page main .shop-hero h1 {
    font-size: 54px !important;
  }
}

@media (max-width: 760px) {
  .fd-shop-page main .shop-section > .shell,
  .fd-shop-page .shop-brochures-dark > .shell {
    width: calc(100% - 40px) !important;
  }

  .fd-shop-page .fd-shop-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-shop-page .fd-count,
  .fd-shop-page .fd-search,
  .fd-shop-page .fd-shop-controls {
    grid-column: 1;
  }

  .fd-shop-page .fd-count {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .fd-shop-page .fd-shop-controls {
    justify-content: flex-start;
  }

  .fd-shop-page .fd-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center;
  }

  .fd-shop-page .shop-brochures-dark .fd-brochure-item {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px !important;
    text-align: center;
  }

  .fd-shop-page .shop-brochures-dark .brochure-cover {
    max-width: 210px !important;
    justify-self: center;
  }

  .fd-shop-page .shop-brochures-dark .brochure-copy {
    align-items: center;
  }
}

@media (max-width: 620px) {
  html body.fd-shop-page main .shop-hero.hero-image-selected {
    min-height: max(580px, calc(100svh - 100px)) !important;
    background-image:
      linear-gradient(rgba(7, 8, 8, 0.35), rgba(7, 8, 8, 0.55)),
      var(--hero-mobile) !important;
  }

  .fd-shop-page main .shop-hero > .shell {
    width: calc(100vw - 40px) !important;
  }

  .fd-shop-page main .shop-hero .hero-copy {
    padding-block: 42px;
  }

  .fd-shop-page main .shop-hero h1 {
    font-size: clamp(40px, 11vw, 52px) !important;
  }

  .fd-shop-page main .shop-hero .hero-eyebrow {
    font-size: 11px !important;
  }

  html body.fd-shop-page main .shop-section,
  html body.fd-shop-page main .shop-brochures-dark {
    padding-block: 64px !important;
  }

  .fd-shop-page .fd-search {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-shop-page .fd-search .btn,
  .fd-shop-page .fd-shop-control,
  .fd-shop-page .fd-shop-control select,
  .fd-shop-page .fd-clear-filters {
    width: 100% !important;
  }

  .fd-shop-page .fd-shop-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .fd-shop-page .fd-shop-check {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 2px;
  }

  .fd-shop-page .fd-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .fd-shop-page .fd-pagination {
    justify-content: flex-start;
  }

  .fd-shop-page .fd-pagination-step {
    flex: 1 1 auto;
  }

  .fd-shop-page .site-final-cta {
    min-height: 400px;
  }
}

@media (max-width: 390px) {
  .fd-shop-page main .shop-hero h1 {
    font-size: 38px !important;
  }

  .fd-shop-page main .shop-hero .hero-copy > p {
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-shop-page .fd-filter-group a,
  .fd-shop-page .fd-category-filter-chevron,
  .fd-shop-page .fd-product-grid .product-media img {
    transition: none;
  }
}
