/*
 * The "shopkeeper" theme (BrandSetting::THEMES): a clean catalogue for a
 * store that sells from its own site. White pages, a plain sans, bordered
 * product cards with the price in the accent color, solid accent buttons,
 * and the store's categories on a bar under the header (Theme
 * merch_category_bar) on every page but the home page, whose store
 * section shows only the featured products. Switching to it also puts the
 * store right after the hero and hides the food and drink sections (Theme
 * default_sections), and the site calls its store "Shop" (Theme
 * merch_label).
 *
 * Colors and fonts come from the brand's CSS custom properties (set in
 * the public layout's <style> block). Accent fills take --color-on-accent
 * text; accent colored text on the page is --color-accent-text and on the
 * secondary panel --color-accent-on-secondary, never the raw accent, so a
 * business's own colors stay readable. The muted text and rules are mixed
 * from the text and background colors. The markup is shared with every
 * other theme, so everything here hangs off neutral hook classes
 * (site-header, site-categories, site-hero, merch-product, merch-cart,
 * and so on) scoped to data-theme="shopkeeper". Unlayered, so
 * these rules win over Tailwind's utilities. classic.css is linked on
 * every public page too and supplies the base hamburger, lightbox, and
 * hero photo rules.
 */

body[data-layout="public"][data-theme="shopkeeper"] {
  --sk-muted: color-mix(in srgb, var(--color-text) 62%, var(--color-background));
  --sk-rule: color-mix(in srgb, var(--color-text) 16%, var(--color-background));
  --sk-panel: var(--color-secondary);
  --sk-on-panel: var(--color-on-secondary);
  --sk-accent-on-panel: var(--color-accent-on-secondary);
  --sk-width: 1200px;

  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[data-layout="public"][data-theme="shopkeeper"] a {
  color: inherit;
}

body[data-layout="public"][data-theme="shopkeeper"] main a.underline {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

body[data-layout="public"][data-theme="shopkeeper"] a:focus-visible,
body[data-layout="public"][data-theme="shopkeeper"] button:focus-visible,
body[data-layout="public"][data-theme="shopkeeper"] input:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 2px;
}

body[data-layout="public"][data-theme="shopkeeper"] h1,
body[data-layout="public"][data-theme="shopkeeper"] h2,
body[data-layout="public"][data-theme="shopkeeper"] h3 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Square corners and one rule color everywhere. */
body[data-layout="public"][data-theme="shopkeeper"] main .rounded,
body[data-layout="public"][data-theme="shopkeeper"] .site-hero__logo {
  border-radius: 0;
}

body[data-layout="public"][data-theme="shopkeeper"] main .border {
  border-color: var(--sk-rule);
}

/* ---------- Buttons: a solid accent block, an outline on hover ---------- */

/* main a.site-button comes after main a.underline, so a section's "Shop
   all" link (site-button underline) gets the button's look. */
body[data-layout="public"][data-theme="shopkeeper"] .site-button,
body[data-layout="public"][data-theme="shopkeeper"] main a.site-button,
body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__add,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-button:hover,
body[data-layout="public"][data-theme="shopkeeper"] main a.site-button:hover,
body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__add:hover,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout:not(:disabled):hover {
  background: transparent;
  color: var(--color-accent-text);
  box-shadow: inset 0 0 0 2px currentColor;
}

/* ---------- Header: white, a bold name, plain links ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-background);
  color: var(--color-text);
  border-bottom: 1px solid var(--sk-rule);
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header nav {
  max-width: var(--sk-width);
  margin: 0 auto;
  min-height: 4rem;
  row-gap: 0.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header__brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  gap: 0.6rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header__logo {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header__links {
  gap: 1.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header__links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-header__links a:hover,
body[data-layout="public"][data-theme="shopkeeper"] .site-header__links a[aria-current="page"] {
  color: var(--color-accent-text);
}

/* ---------- Header name and logo: faded in after the hero ----------
 * On the home page when it opens with the hero ([data-header-overlay]),
 * the hero already shows the name and logo, so the header's stay hidden
 * until the page has scrolled a tenth of the window
 * (site_header_controller.js sets data-scrolled-far) and fade back out on
 * the way up. They keep their space, so the row never shifts; hidden also
 * takes the link out of the tab order until it shows. Every other page
 * shows them as usual. Same as themes/shoply.css. */

body[data-layout="public"][data-theme="shopkeeper"][data-header-overlay] .site-header__brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body[data-layout="public"][data-theme="shopkeeper"][data-header-overlay] .site-header[data-scrolled-far] .site-header__brand {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/* ---------- Header: narrow-screen hamburger nav ----------
 * classic.css hides the toggle above the phone breakpoint and collapses
 * the links below it once site_header_controller.js sets [data-js]; this
 * only restyles the toggle and the open panel. */

body[data-layout="public"][data-theme="shopkeeper"] .site-header__toggle {
  border-radius: 0;
  color: var(--color-text);
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="shopkeeper"] .site-header[data-compact] .site-header__logo {
    display: none;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-header[data-js][data-open] .site-header__links[data-collapsible] {
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    background: var(--color-background);
    border-top: 1px solid var(--sk-rule);
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-header[data-js][data-open] .site-header__links[data-collapsible] a {
    border-bottom: 1px solid var(--sk-rule);
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-header[data-js][data-open] .site-header__links[data-collapsible] .social-links a {
    border-bottom: 0;
  }
}

/* ---------- Category bar: the store's categories under the header ----------
 * A band in the secondary color, lined up with the header's column. On a
 * phone it stays one row and scrolls sideways (it is never behind the
 * hamburger, and needs no JavaScript). */

body[data-layout="public"][data-theme="shopkeeper"] .site-categories {
  padding-inline: max(1.25rem, calc((100% - var(--sk-width)) / 2 + 1.25rem));
  background: var(--sk-panel);
  color: var(--sk-on-panel);
  border-bottom: 1px solid var(--sk-rule);
}

body[data-layout="public"][data-theme="shopkeeper"] .site-categories a {
  padding-block: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-categories a:hover,
body[data-layout="public"][data-theme="shopkeeper"] .site-categories a[aria-current="page"] {
  color: var(--sk-accent-on-panel);
  border-bottom-color: currentColor;
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="shopkeeper"] .site-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
}

/* ---------- Hero: a panel, or the photo beside the words ----------
 * Without a photo the hero is a band in the secondary color. With one, a
 * wide screen splits it: the photo on the left, the name, description,
 * and button on the panel to its right. On a phone the photo sits behind
 * the words under classic.css's dark overlay. */

body[data-layout="public"][data-theme="shopkeeper"] .site-hero {
  padding: 4.5rem 1.25rem;
  background: var(--sk-panel);
  color: var(--sk-on-panel);
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero h1 {
  color: inherit;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo {
  min-height: 22rem;
  justify-content: center;
  color: #ffffff;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero__content {
  gap: 1rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero__location {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero__description {
  max-width: 34rem;
  font-size: 1.1rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero .site-button {
  margin-top: 0.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-button:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 26rem;
    padding: 0;
    color: var(--sk-on-panel);
    text-align: left;
  }

  /* The words set the hero's height (at least 26rem); the photo fills
     its half without adding to it. */
  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-hero__photo {
    position: static;
    height: 0;
    min-height: 100%;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-hero__overlay {
    display: none;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-hero__content {
    align-items: flex-start;
    justify-content: center;
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-hero__content > div {
    justify-content: flex-start;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .site-hero--photo .site-button:hover {
    color: var(--color-accent-on-secondary);
  }
}

/* ---------- Sections: one column, titles on the left over a short accent bar ---------- */

body[data-layout="public"][data-theme="shopkeeper"] main > section:not(.site-hero),
body[data-layout="public"][data-theme="shopkeeper"] main > div.merch-page {
  width: 100%;
  max-width: var(--sk-width);
  margin-inline: auto;
  padding-block: 2.5rem;
  gap: 1.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .section-title {
  font-size: 1.6rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--color-accent);
}

body[data-layout="public"][data-theme="shopkeeper"] main > section > .site-button {
  align-self: flex-start;
}

body[data-layout="public"][data-theme="shopkeeper"] .hours-location__day {
  max-width: 22rem;
  border-bottom: 1px solid var(--sk-rule);
  padding-block: 0.35rem;
}

/* ---------- About section: a small photo on the right, the story around it ----------
 * The home page's About section with a photo (the /about page's photo sits
 * inside a div, so these never match it; its own rules follow). The photo
 * is half the card's 600px. From the phone breakpoint up it floats right,
 * which a flex item can't do, so the section and the summary become plain
 * blocks and the section's gap becomes margins; flow-root keeps a photo
 * taller than the story inside the section. On a phone the photo stays
 * above the story. */

body[data-layout="public"][data-theme="shopkeeper"] main > section > .about-photo {
  width: 18.75rem;
  height: auto;
}

/* The /about page does the same inside its story column: the photo is at
   most half the column, floated right, with the story's paragraphs around
   it. On a phone it stays full width above the story. */
@media (min-width: 640px) {
  body[data-layout="public"][data-theme="shopkeeper"] .about-page > div:has(> .about-photo) {
    display: flow-root;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .about-page > div > .about-photo {
    float: right;
    max-width: 50%;
    margin: 0 0 1rem 2rem;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .about-page > div:has(> .about-photo) > p + p {
    margin-top: 1rem;
  }
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="shopkeeper"] main > section:has(> .about-photo) {
    display: flow-root;
  }

  body[data-layout="public"][data-theme="shopkeeper"] main > section:has(> .about-photo) > .section-title {
    margin-bottom: 1.5rem;
  }

  body[data-layout="public"][data-theme="shopkeeper"] main > section > .about-photo {
    float: right;
    margin: 0 0 1rem 2rem;
  }

  body[data-layout="public"][data-theme="shopkeeper"] main > section:has(> .about-photo) > .about-summary {
    display: block;
  }

  body[data-layout="public"][data-theme="shopkeeper"] main > section:has(> .about-photo) > .about-summary p + p {
    margin-top: 0.75rem;
  }

  body[data-layout="public"][data-theme="shopkeeper"] main > section:has(> .about-photo) > .site-button {
    margin-top: 1.5rem;
  }
}

/* ---------- Category groups on the store page ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .merch-group__title {
  font-size: 1.3rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-group__title a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-group__title a:hover {
  color: var(--color-accent-text);
}

/* ---------- Product cards: bordered, the photo edge to edge, a bold price ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .merch-list {
  gap: 1rem;
}

/* The store and category pages: two, three, then four cards across. The
   home section keeps the markup's own column counts. */
body[data-layout="public"][data-theme="shopkeeper"] .merch-page .merch-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  body[data-layout="public"][data-theme="shopkeeper"] .merch-page .merch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body[data-layout="public"][data-theme="shopkeeper"] .merch-page .merch-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product {
  gap: 0;
  padding: 0;
  border: 1px solid var(--sk-rule);
  background: var(--color-background);
  transition: border-color 0.15s;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product:hover {
  border-color: var(--color-text);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product__link {
  gap: 0;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product__photo {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sk-panel);
}

/* A product without a photo keeps the grid square with an empty panel. */
body[data-layout="public"][data-theme="shopkeeper"] .merch-product__link:not(:has(.merch-product__photo))::before {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: var(--sk-panel);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product__name {
  padding: 0.75rem 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product__link:hover .merch-product__name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product__price {
  padding: 0.2rem 0.9rem 0.85rem;
  color: var(--color-accent-text);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Store and category pages ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__description {
  max-width: 44rem;
  color: var(--sk-muted);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__empty {
  color: var(--sk-muted);
}

/* The store page's jump links, as chips. */
body[data-layout="public"][data-theme="shopkeeper"] .merch-page__categories {
  gap: 0.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__categories a {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--sk-rule);
  font-weight: 600;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__categories a:hover {
  border-color: var(--color-text);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page .merch-group {
  gap: 1rem;
  scroll-margin-top: 5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page .merch-group__title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sk-rule);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__back,
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__back {
  align-self: flex-start;
  color: var(--sk-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__back::before,
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__back::before {
  content: "\2190\00a0";
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-page__back:hover,
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__back:hover {
  color: var(--color-text);
}

/* ---------- Product page: photos beside the details ----------
 * On a phone the photos come first, then the name, price, description,
 * and options (the markup's order puts the name before the photos and the
 * description before the price). */

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-block: 2rem 4rem;
  gap: 1rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__back { order: 0; }
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__photos { order: 1; }
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__title { order: 2; }
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__price { order: 3; }
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__description { order: 4; }
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__variants { order: 5; }

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__photos--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--sk-rule);
  background: var(--sk-panel);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__photos--grid .merch-product-page__photo:first-child {
  grid-column: 1 / -1;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__price {
  color: var(--color-accent-text);
  font-size: 1.5rem;
  font-weight: 700;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__description {
  color: var(--sk-muted);
}

@media (min-width: 768px) {
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page:has(.merch-product-page__photos) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "back back"
      "photos title"
      "photos price"
      "photos description"
      "photos variants";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 3rem;
    row-gap: 1rem;
    align-items: start;
  }

  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__back { grid-area: back; }
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__photos { grid-area: photos; }
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__title { grid-area: title; }
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__price { grid-area: price; }
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__description { grid-area: description; }
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__variants { grid-area: variants; }

  /* Without photos the details read as one narrow column. */
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page:not(:has(.merch-product-page__photos)) {
    max-width: 42rem;
  }
}

/* Sizes and options: one bordered row each, the add button at the end. */
body[data-layout="public"][data-theme="shopkeeper"] .merch-product-page__variants {
  gap: 0.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-variant {
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  border: 1px solid var(--sk-rule);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__label {
  flex: 1 1 auto;
  font-weight: 600;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__price,
body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__sold-out {
  color: var(--sk-muted);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__add {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Cart: a bordered panel with boxed fields ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart {
  width: 100%;
  max-width: 36rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  gap: 1rem;
  border: 1px solid var(--sk-rule);
  border-radius: 0;
  background: var(--color-background);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__title,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__items {
  gap: 0;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__item {
  display: grid;
  grid-template-columns: 128px 1fr auto auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sk-rule);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__thumb {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 0;
  background: var(--sk-rule);
  overflow: hidden;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__thumb img {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 0;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__step {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__limit,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__note,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__free-shipping,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__unavailable,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__variant {
  font-size: 0.8rem;
  opacity: 0.75;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__subtotal,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__shipping,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__total {
  text-align: right;
}

@media (max-width: 639px) {
  body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__item {
    grid-template-columns: 128px 1fr;
  }
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sk-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__remove:hover {
  color: var(--color-text);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__empty {
  color: var(--sk-muted);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__errors,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__errors {
  border-color: currentColor;
  border-radius: 0;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__form,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__form {
  max-width: none;
  gap: 0.85rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__field label,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__field label {
  font-size: 0.85rem;
  font-weight: 600;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__field input,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__field input,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__field select,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__field select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--sk-rule);
  border-radius: 0;
  background: var(--color-background);
  color: inherit;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__field input:focus,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__field input:focus,
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__field select:focus,
body[data-layout="public"][data-theme="shopkeeper"] .merch-checkout__field select:focus {
  border-color: var(--color-text);
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout {
  align-self: stretch;
  margin-top: 0.5rem;
  padding: 0.9rem;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Under it, "Continue shopping" is the same button as an outline. */
body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__continue {
  align-self: stretch;
  padding: 0.9rem;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px currentColor;
  color: var(--color-accent-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__continue:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: none;
}

/* ---------- Order status ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .merch-order-status {
  width: 100%;
  margin-inline: auto;
  padding-block: 3rem;
}

/* ---------- Footer: a ruled band in the muted color ---------- */

body[data-layout="public"][data-theme="shopkeeper"] .site-footer {
  padding: 2.5rem 1.25rem;
  border-color: var(--sk-rule);
  color: var(--sk-muted);
}

body[data-layout="public"][data-theme="shopkeeper"] .site-footer__name {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-footer__contact a {
  text-decoration: none;
}

body[data-layout="public"][data-theme="shopkeeper"] .site-footer__contact a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (prefers-reduced-motion: reduce) {
  body[data-layout="public"][data-theme="shopkeeper"] .site-button,
  body[data-layout="public"][data-theme="shopkeeper"] .merch-variant__add,
  body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout,
  body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__continue,
  body[data-layout="public"][data-theme="shopkeeper"] .merch-product {
    transition: none;
  }
}

body[data-layout="public"][data-theme="shopkeeper"] .merch-cart__checkout[hidden] {
  display: none;
}
