/**
 * Weiss Store Info — front-end styles.
 *
 * Reads the child theme's tokens (--weiss-*, --font-*) and falls back to the
 * Weiss design-guide values, so it looks right with or without the theme.
 * To restyle, override the --ws-* variables (e.g. in Additional CSS).
 */

.ws-bar,
.ws-specials,
.ws-video,
.ws-hours,
.ws-status,
.ws-store,
.ws-updated {
  --ws-font-heading: var(--font-heading, 'Libre Caslon Text', Georgia, serif);
  --ws-font-body:    var(--font-body, 'Work Sans', 'Helvetica Neue', Arial, sans-serif);
  --ws-font-script:  var(--font-script, var(--ws-font-heading));

  --ws-burgundy:  var(--weiss-burgundy, #7E1F2A);
  --ws-accent:    var(--weiss-accent-red, #C8443F);
  --ws-espresso:  var(--weiss-espresso, #1A0F0D);
  --ws-deep:      var(--weiss-burgundy-deep, #4A1019);
  --ws-label:     var(--weiss-on-dark-label, #E8C9C9);
  --ws-overlay:   var(--weiss-overlay, rgba(26, 11, 10, 0.76));
  --ws-frame:     var(--weiss-frame-on-dark, rgba(255, 255, 255, 0.6));
  --ws-frame-width: var(--weiss-frame-width, 3px);
  --ws-open:      #3E8E5A;
}

/* Flex-basis math below assumes padding is inside the width. */
.ws-specials,
.ws-specials *,
.ws-video,
.ws-video * {
  box-sizing: border-box;
}

.ws-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================================================
   [weiss_specials]: edge-to-edge photo tiles, each with a framed dark box.

   Column count comes from data-cols (set in PHP from the number of tiles:
   1–4 in one row, 5 → 3+2, 6 → 3+3, 7 → 4+3). Tiles in a short last row grow
   to fill it. Under 900px it's 2 across, under 500px 1.
   ============================================================================= */

.ws-specials {
  --ws-cols: 4;
  display: flex;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: var(--ws-espresso);
}

.ws-specials[data-cols="1"] { --ws-cols: 1; }
.ws-specials[data-cols="2"] { --ws-cols: 2; }
.ws-specials[data-cols="3"] { --ws-cols: 3; }
.ws-specials[data-cols="4"] { --ws-cols: 4; }

@media (max-width: 900px) {
  .ws-specials[data-cols] { --ws-cols: 2; }
  .ws-specials[data-cols="1"] { --ws-cols: 1; }
}

@media (max-width: 500px) {
  .ws-specials[data-cols] { --ws-cols: 1; }
}

.ws-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 calc(100% / var(--ws-cols));
  min-width: 0;
  min-height: clamp(420px, 38vw, 540px);
  margin: 0 !important;
  padding: clamp(28px, 3.2vw, 44px) clamp(22px, 2.6vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  list-style: none;
}

.ws-tile__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.ws-tile:hover .ws-tile__bg {
  transform: scale(1.05);
}

/* No photo: a warm espresso → burgundy wash, alternating direction. */
.ws-tile--no-image {
  background: linear-gradient(160deg, var(--ws-espresso) 0%, var(--ws-deep) 100%);
}

.ws-tile--no-image:nth-child(even) {
  background: linear-gradient(200deg, var(--ws-espresso) 0%, var(--ws-deep) 100%);
}

/* The framed box (design guide "signature element"). */
.ws-tile__box {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding: 32px 34px 30px;
  background: var(--ws-overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  outline: var(--ws-frame-width) solid var(--ws-frame);
  outline-offset: 9px;
  font-family: var(--ws-font-body);
  text-align: left;
}

.ws-tile__today {
  display: none;
  position: absolute;
  top: -13px;
  right: 18px;
  padding: 6px 12px;
  background: var(--ws-burgundy);
  color: #fff;
  font-family: var(--ws-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.ws-tile.is-today .ws-tile__today {
  display: block;
}

.ws-tile.is-today .ws-tile__box {
  outline-color: #fff;
}

/* Day name, with the tagline beside it when it fits and below when it doesn't. */
.ws-tile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  margin-bottom: 14px;
}

.ws-tile .ws-tile__day {
  margin: 0 !important;
  padding: 0;
  font-family: var(--ws-font-heading) !important;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase;
  color: #fff !important;
}

.ws-tile__tagline {
  margin: 0 !important;
  font-family: var(--ws-font-script);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #fff;
}

.ws-tile__list + .ws-tile__list {
  margin-top: 18px;
}

/* Holiday this coming week: "Closed Nov 26 for Thanksgiving". */
.ws-tile__holiday {
  margin: 0 0 18px !important;
  padding: 8px 14px;
  background: var(--ws-burgundy);
  color: #fff;
  font-family: var(--ws-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

/* A day the shop is closed: the specials fade back so the notice leads. */
.ws-tile__holiday.is-closed ~ .ws-tile__list,
.ws-tile__holiday.is-closed ~ .ws-tile__note {
  opacity: 0.6;
}

.ws-tile__label {
  margin: 0 0 6px !important;
  font-family: var(--ws-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ws-label);
}

.ws-tile__items {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
}

.ws-tile__items li {
  display: inline;
  margin: 0 !important;
  padding: 0 !important;
}

.ws-tile__items li + li::before {
  content: '·';
  margin: 0 0.45em;
  color: var(--ws-label);
}

.ws-tile__note {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .ws-tile__bg { transition: none; }
  .ws-tile:hover .ws-tile__bg { transform: none; }
}


/* =============================================================================
   The banner above the tiles: "FRESH THIS WEEK" on the left, "Last updated…"
   on the right. Full-width dark strip; its contents line up with the header's
   1440px line. Stacks on narrow screens.
   ============================================================================= */

.ws-bar {
  margin: 0;
  padding: 20px clamp(24px, 5vw, 72px);
  background: var(--weiss-ink, #1E1614);
  color: #fff;
}

.ws-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  max-width: var(--max-width, 1440px);
  margin-inline: auto;
}

/* Eyebrow style, with the short red rule in front. */
.ws-bar .ws-bar__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #fff;
  font-family: var(--ws-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ws-bar .ws-bar__title::before {
  content: '';
  flex: none;
  width: 50px;
  height: 2px;
  background: var(--ws-accent);
}

.ws-bar__updated {
  margin: 0;
  color: var(--ws-label);
  font-family: var(--ws-font-heading);
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  font-style: italic;
  line-height: 1.3;
}

/* Sit flush on the tiles, with no gap between banner and photos. */
.ws-bar + .ws-specials {
  margin-top: 0;
}

@media (max-width: 600px) {
  .ws-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =============================================================================
   [weiss_updated]
   ============================================================================= */

.ws-updated {
  font-family: var(--ws-font-body);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}


/* =============================================================================
   [weiss_video]: "From the Shop". Colors follow the section it's placed in
   (white text on an espresso Group, ink on a light one).
   ============================================================================= */

.ws-video {
  max-width: 1150px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--ws-font-body);
}

.ws-video__eyebrow {
  margin: 0 0 18px !important;
  font-family: var(--ws-font-body) !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-accent, var(--ws-burgundy));
}

.ws-video .ws-video__title {
  margin: 0 !important;
  font-family: var(--ws-font-heading) !important;
  font-size: clamp(2.25rem, 4.6vw, 3.625rem) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: 0.01em;
  color: inherit;
}

.ws-video__frame {
  margin-top: clamp(36px, 5vw, 64px);
  padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.ws-video__player,
.ws-video__frame iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  overflow: hidden;
}

.ws-video__thumb {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.ws-video__player:hover .ws-video__thumb {
  transform: scale(1.02);
  opacity: 0.92;
}

/* Square burgundy play button (on-brand, instead of YouTube's red). */
.ws-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(64px, 8vw, 88px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--ws-burgundy);
  outline: var(--ws-frame-width) solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
  transition: background 0.25s ease, outline-offset 0.25s ease;
}

.ws-video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.ws-video__player:hover .ws-video__play,
.ws-video__player:focus-visible .ws-video__play {
  background: var(--weiss-burgundy-dark, #5E1420);
  outline-offset: 9px;
}

.ws-video__player:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ws-video__link-wrap {
  margin: clamp(32px, 4vw, 56px) 0 0 !important;
}

.ws-video__link {
  font-family: var(--ws-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.ws-video__link:hover {
  color: var(--color-accent, var(--ws-label)) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ws-video__thumb,
  .ws-video__play { transition: none; }
}


/* =============================================================================
   [weiss_hours]
   ============================================================================= */

.ws-hours {
  font-family: var(--ws-font-body);
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Times keep their full width and never wrap; long day labels ("Thu, Nov 26 ·
   Thanksgiving") wrap instead. With "auto 1fr" a long label took all the room
   and squeezed the times to one letter per line in narrow columns. */
.ws-hours__list {
  display: grid;
  grid-template-columns: minmax(0, auto) max-content;
  gap: 0.3em 1.5em;
  margin: 0;
}

.ws-hours__row {
  display: contents;
}

.ws-hours__list dt {
  font-weight: 600;
}

.ws-hours__list dd {
  margin: 0;
  white-space: nowrap;
}

.ws-hours__row.is-closed dd {
  opacity: 0.7;
}

/* A holiday this week stands out instead of fading like a normal closed day. */
.ws-hours__row.is-holiday dd {
  opacity: 1;
  font-weight: 600;
}

.ws-hours__holiday {
  font-weight: 400;
  font-style: italic;
}

/* Inline: for the burgundy info bar. Hours in Libre Caslon 700 20px. */
.ws-hours--inline {
  font-family: var(--ws-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}

.ws-hours__sep {
  opacity: 0.6;
}

.ws-hours__special {
  margin: 0.75em 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-family: var(--ws-font-body);
  font-size: 1.125rem;
  font-weight: 400;
}

.ws-hours__special li {
  margin: 0 !important;
}

.ws-hours__when {
  font-weight: 600;
}

.ws-hours__when::after {
  content: ':';
}


/* =============================================================================
   [weiss_status]
   ============================================================================= */

.ws-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ws-font-body);
  font-size: 1.125rem;
  font-weight: 600;
}

.ws-status[hidden] {
  display: none;
}

.ws-status::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--ws-accent);
}

.ws-status.is-open::before {
  background: var(--ws-open);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ws-open) 30%, transparent);
}


/* =============================================================================
   [weiss_store]
   ============================================================================= */

.ws-store {
  color: inherit;
}

.ws-store--address {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.ws-store__icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

/* lines="yes": street, then "City, ST ZIP", each underlined on its own. */
.ws-store--lines {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* field="directions": "GET DIRECTIONS" with the pointer icon in front. */
.ws-store--directions {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ws-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ws-burgundy) !important;
  text-decoration: none !important;
}

.ws-store--directions > span:not(.ws-sr) {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.ws-store--directions:hover {
  color: var(--weiss-burgundy-dark, #5E1420) !important;
}


/* =============================================================================
   [weiss_map]
   ============================================================================= */

.ws-map {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--weiss-cream, #F6F0E7);
}

.ws-map__frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
