/* Five Roosters storefront.

   Everything the public site needs and administration does not. Loaded after
   site.css by the storefront layout only. */

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--raspberry);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--sun);
}

.lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.lede--light {
  color: var(--text-on-dark);
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.announcement {
  color: white;
  background: var(--plum);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announcement__inner {
  display: flex;
  min-height: 2.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: white;
}

/* Home */

.home-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.home-hero__grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.home-hero__grid--text-only {
  justify-items: center;
  text-align: center;
}

.home-hero__grid--text-only .home-hero__copy,
.home-hero__grid--text-only .home-hero__note {
  margin-inline: auto;
}

.home-hero__copy {
  max-width: 37rem;
}

.home-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.home-hero__note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.91rem;
}

.home-hero__note::before {
  content: "GF";
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--leaf);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-media {
  position: relative;
  width: min(100%, 34rem);
  justify-self: center;
}

.hero-media::before {
  position: absolute;
  inset: -0.85rem 0.85rem 0.85rem -0.85rem;
  z-index: 0;
  content: "";
  background: var(--sun);
}

.hero-media__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--peach);
}

.hero-media__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-media__track::-webkit-scrollbar {
  display: none;
}

.hero-media__slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-media__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media__control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  color: white;
  background: rgb(31 39 28 / 72%);
  box-shadow: 0 0.15rem 0.8rem rgb(31 39 28 / 25%);
  font-size: 1.15rem;
  cursor: pointer;
}

.hero-media__control:hover,
.hero-media__control:focus-visible {
  background: var(--leaf-dark);
}

.hero-media__control--previous {
  left: 0.75rem;
}

.hero-media__control--next {
  right: 0.75rem;
}

.hero-media__pagination {
  position: absolute;
  right: 0;
  bottom: 0.75rem;
  left: 0;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.hero-media__pagination span {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(31 39 28 / 45%);
  transition: transform 150ms ease, background-color 150ms ease;
}

.hero-media__pagination span[data-current] {
  transform: scale(1.25);
  background: white;
}

.hero-media__caption {
  position: relative;
  z-index: 2;
  width: calc(100% - 2rem);
  margin: -2.4rem auto 0;
  padding: 1rem 1.2rem;
  color: white;
  background: var(--leaf-dark);
  font-size: 0.88rem;
}

.hero-media__caption strong,
.hero-media__caption span {
  display: block;
}

.hero-media__caption strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* Product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.product-card {
  position: relative;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--peach);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1rem;
  color: var(--plum);
  background: var(--peach);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  text-align: center;
}

.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.5rem);
}

.product-card__body {
  padding: 1.15rem;
}

.product-card__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-card h3 {
  margin: 0;
  font-size: var(--step-1);
}

.product-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.product-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.product-card h3 a:hover {
  color: var(--plum);
}

.product-card__price {
  flex: 0 0 auto;
  color: var(--plum);
  font-weight: 850;
  white-space: nowrap;
}

.product-card__description {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-card__availability {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.product-card__availability::before {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--success);
}

.product-card__availability--unavailable::before {
  background: var(--danger);
}

/* Shop */

.shop-shell {
  width: min(100% - 2rem, 90rem);
}

.shop-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.shop-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-filter-item {
  min-width: 0;
}

.product-filter-item .product-card {
  height: 100%;
}

.shop-count {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.shop-count strong {
  color: var(--ink);
}

/* Product detail */

.product-detail {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.product-gallery__primary {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--peach);
}

.product-gallery__primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.product-gallery__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--peach);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary h1 {
  margin-bottom: 0.6rem;
}

.product-summary__price {
  margin-bottom: 1.2rem;
  color: var(--plum);
  font-size: var(--step-2);
  font-weight: 850;
}

.product-summary__description {
  color: var(--ink-soft);
  font-size: var(--step-1);
}

.availability {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-block: 1.5rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
}

.availability__dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.43rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
}

.availability--unavailable .availability__dot {
  background: var(--danger);
}

.availability p {
  margin: 0;
}

.availability strong {
  display: block;
}

.product-summary__fine-print {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.product-facts {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.nutrition-panel {
  max-width: 29rem;
  padding: 1rem;
  color: var(--nutrition-ink);
  background: white;
  border: 2px solid var(--nutrition-ink);
  font-family: Arial, sans-serif;
}

.nutrition-panel h2 {
  margin: 0;
  padding: 0 0 0.35rem;
  border-bottom: 0.65rem solid var(--nutrition-ink);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.nutrition-serving {
  margin: 0;
  padding-block: 0.45rem;
  border-bottom: 0.3rem solid var(--nutrition-ink);
  font-size: 0.85rem;
}

.nutrition-amount-label {
  margin: 0;
  padding-top: 0.35rem;
  font-size: 0.72rem;
}

.nutrition-calories {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-block: 0.35rem;
  border-bottom: 0.55rem solid var(--nutrition-ink);
  font-weight: 800;
}

.nutrition-calories strong {
  font-size: 1.8rem;
  line-height: 1;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.nutrition-table th,
.nutrition-table td {
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--nutrition-ink);
}

.nutrition-table th {
  text-align: left;
}

.nutrition-table td {
  text-align: right;
}

.nutrition-table thead th:last-child {
  text-align: right;
}

.nutrition-table .nutrition-indent {
  padding-left: 1rem;
  font-weight: 400;
}

.nutrition-table .nutrition-double-indent {
  padding-left: 2rem;
  font-weight: 400;
}

.nutrition-note {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.error-page .lede {
  margin-inline: auto;
}

/* Footer */

.site-footer {
  color: var(--text-on-dark-strong);
  background: var(--plum-dark);
}

.newsletter p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 1rem;
  color: var(--text-on-dark);
  font-size: 0.9rem;
}

.footer-grid nav h2 {
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: 1.2rem;
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 50rem) {
  .home-hero__grid {
      grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.8fr);
      gap: clamp(3rem, 7vw, 7rem);
    }

  .home-hero__grid--text-only {
      grid-template-columns: minmax(0, 42rem);
      justify-content: center;
    }

  .content-grid.shop-content-grid {
      grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
      gap: clamp(2rem, 3vw, 3.5rem);
    }

  .product-detail {
      grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.8fr);
    }

  .product-summary {
      position: sticky;
      top: 1.5rem;
    }

  .product-facts {
      grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
    }

  .footer-grid {
      grid-template-columns: 1.4fr 0.7fr 0.7fr;
    }
}

@media (min-width: 66rem) {
  .shop-toolbar {
      grid-template-columns: 1fr auto;
      align-items: center;
    }

  .shop-count {
      text-align: right;
    }
}

@media print {
  .site-header,
  .site-footer {
      display: none !important;
    }
}

.footer-socials,
.special-request-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-link:hover {
  opacity: 0.82;
  transform: translateY(-0.08rem);
}

.social-icon__image {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.social-link .social-icon__image {
  width: 1.65rem;
  height: 1.65rem;
}

.social-button {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.social-button .social-icon__image {
  width: 1rem;
  height: 1rem;
}

.site-footer .footer-socials .social-button {
  color: white;
  background: transparent;
  border-color: white;
}

.site-footer .footer-socials .social-button:hover {
  color: var(--plum-dark);
  background: white;
  border-color: white;
}

.updates-feature .eyebrow {
  color: var(--sun);
}

.special-request-grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

.special-request-intro,
.special-request-contact {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}

.special-request-intro {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.special-request-contact {
  color: white;
  background: linear-gradient(145deg, var(--plum), var(--plum-dark));
}

.special-request-contact .eyebrow {
  color: var(--sun);
}

.special-request-contact .button--outline {
  color: white;
  background: transparent;
  border-color: white;
}

.special-request-contact .button--outline:hover {
  color: var(--plum-dark);
  background: white;
  border-color: white;
}

.special-request-note {
  color: inherit;
  font-size: 0.9rem;
}

.special-request-buttons {
  margin-block: 1.25rem;
}

.special-request-buttons > .special-request-email {
  width: 100%;
  flex: 1 0 100%;
}

.special-request-buttons > .social-button {
  min-width: 0;
  flex: 1 1 calc((100% - 0.55rem) / 2);
}

.checkout-updates {
  padding: 1.1rem;
  margin-top: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.checkout-updates legend {
  padding-inline: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 800;
}

.checkout-updates > p {
  margin-bottom: 0.85rem;
}

@media (min-width: 52rem) {
  .special-request-grid {
      grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    }
}

/* Weekly order builder and confirmation */

.checkout-form {
  display: grid;
  gap: 1.25rem;
  max-width: 64rem;
  margin-inline: auto;
}

.checkout-section {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.checkout-section__header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.checkout-section__header h2,
.checkout-section__header p,
.checkout-line h3,
.checkout-line p {
  margin-bottom: 0;
}

.checkout-lines {
  display: grid;
  gap: 0.7rem;
}

.checkout-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.checkout-line--unavailable {
  opacity: 0.68;
}

.checkout-line__quantity input {
  text-align: center;
}

.checkout-client-error {
  margin: 0 0 1rem;
}

.checkout-pickup-confirmation {
  margin-top: 1.25rem;
}

.checkout-terms {
  margin-top: 1.25rem;
}

.checkout-submit {
  padding: 1.2rem;
  text-align: center;
}

.checkout-submit p {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.confirmation-lines {
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
  border-top: 1px solid var(--line);
}

.confirmation-lines li,
.confirmation-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-total {
  font-size: var(--step-1);
}

@media (max-width: 36rem) {
  .checkout-line {
      grid-template-columns: minmax(0, 1fr) 5rem;
    }
}
