/*
 * Everyday finishing layer. Linked by layout/theme.liquid after the Everyday
 * bundle, so these rules win ties with it. Fixes from the browser QA of the
 * demo host (2026-10-30) that belong to no single page:
 *
 *   - one placeholder tile for every product without an image
 *   - an outline variant of the Everyday button
 *   - the featured "Everyday edit" stacks on a phone instead of squeezing its
 *     image into a 90px column
 *   - the product page keeps its eyebrow off the header
 *
 * The bundle files (perf-*.css) are fingerprinted and are not edited by hand.
 */

/* One placeholder: the sky tile with the blue "Care, in focus." line. It fills
   whatever box holds it (a card photo, a cart thumbnail, a gallery frame). */
.e-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: var(--everyday-sky, #edf4ff);
  color: var(--everyday-blue, #173fe8);
  text-align: center;
  overflow: hidden;
  border-radius: inherit;
  container-type: inline-size;
}
.e-placeholder .care-image-fallback {
  display: block;
  padding: 12px;
  padding: clamp(4px, 7cqi, 24px);
  font-family: var(--font-heading, Arial, Helvetica, sans-serif);
  font-size: 1.35rem;
  font-size: clamp(11px, 7.5cqi, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: inherit;
  text-wrap: balance;
}
/* Inside a photo frame the tile covers the frame, like the photo would. */
.product-image > .e-placeholder,
.catalog-feature-image > .e-placeholder {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}
/* The featured block sits on the same sky as the tile, so the tile there is one step deeper. */
.catalog-feature-image > .e-placeholder {
  background: #e0e8fb;
  background: color-mix(in srgb, var(--everyday-blue, #173fe8) 11%, #fff);
}
.main-image > .no-img { padding: 0; }
.main-image .e-placeholder { aspect-ratio: 1 / 1.08; height: auto; border-radius: 4px; }
.related-card .img-wrap > .e-placeholder { height: 100%; }
.cart-table .item-img-placeholder, .item-image-wrap .e-placeholder, .item-placeholder { overflow: hidden; }
.cart-table .item-img-placeholder { padding: 0; background: transparent; }
.item-placeholder { padding: 0; background: transparent; }
@media (max-width: 768px) {
  .main-image .e-placeholder { aspect-ratio: 4 / 3; min-height: 160px; }
}

/* The outline button: Everyday's button with the ink border and no fill. */
.e-button.e-button--outline {
  background: transparent;
  border-color: var(--everyday-ink, #14234b);
  color: var(--everyday-ink, #14234b);
}
.e-button.e-button--outline:hover {
  background: var(--everyday-ink, #14234b);
  color: #fff;
}

/* Products: the featured "Everyday edit" stacks on a phone. The bundle keeps it
   as a 90 to 104px image column with the text squeezed beside it. */
@media (max-width: 768px) {
  body.everyday-theme .everyday-catalog .catalog-feature {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin: 0;
    border-radius: 0;
  }
  body.everyday-theme .everyday-catalog .catalog-feature-image {
    aspect-ratio: 1.5;
    min-height: 0;
    height: auto;
  }
  body.everyday-theme .everyday-catalog .catalog-feature > div:last-child { padding: 28px 22px 32px; }
  body.everyday-theme .everyday-catalog .catalog-feature h2 { margin: 12px 0 16px; font-size: clamp(30px, 8vw, 40px); line-height: 1.08; }
  body.everyday-theme .everyday-catalog .catalog-feature .care-eyebrow { font-size: 12px !important; margin: 0; }
  body.everyday-theme .everyday-catalog .catalog-feature > div:last-child > p:not(.care-eyebrow):not(.catalog-feature-price) { display: block; }
  body.everyday-theme .everyday-catalog .catalog-feature .catalog-feature-price { margin: 12px 0 20px; font-size: 20px; }
  body.everyday-theme .everyday-catalog .catalog-feature .care-button { padding: 14px 22px; min-height: 48px; font-size: 14px; line-height: 1.4; }
  body.everyday-theme .everyday-catalog .catalog-feature .catalog-fine { display: block; margin-top: 18px; }
}

/* Product page: air between the header and the first line. On a phone the page
   starts with the eyebrow, which sat flush against the header. */
body.everyday-theme .product-wrap.everyday-detail { padding-top: 36px; }
@media (max-width: 640px) {
  body.everyday-theme .product-wrap.everyday-detail { padding-top: 28px; }
}
