/* ==========================================================================
   Mix-and-match butter tart six-pack.

   The design specifies its own screen rather than a product page, with a
   dipped/undipped step first. Annie sells mix-and-match on the dipped box
   only, so that step is gone and the builder opens straight on the flavours.
   ========================================================================== */

.ac-tartbox-page .ac-single div.product {
  display: block;
  max-width: none;
  padding: 0;
}
.ac-tartbox-page .ac-single div.product > .summary,
.ac-tartbox-page .ac-single div.product > .woocommerce-product-gallery,
.ac-tartbox-page .ac-single div.product > .woocommerce-tabs,
.ac-tartbox-page .ac-single div.product > .related,
.ac-tartbox-page .ac-single div.product > .upsells { display: none; }

/* ------------------------------------------------------------------ hero */

.ac-tart__hero {
  background: var(--ac-story-ground, #3A2418);
  color: var(--ac-on-dark);
  text-align: center;
  padding: 54px var(--ac-gutter) 40px;
}
.ac-tart__hero .ac-label { color: var(--ac-accent-light); }
.ac-tart__hero h1 {
  margin: 14px auto 14px;
  max-width: 16ch;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--ac-on-dark);
}
.ac-tart__hero p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ac-on-dark-soft);
}

/* ---------------------------------------------------------------- layout */

.ac-tart__body {
  max-width: var(--ac-max);
  margin: 0 auto;
  padding: 44px var(--ac-gutter) var(--ac-space-section);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}
.ac-tart__main { min-width: 0; }

.ac-tart__step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ac-tart__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ac-ink);
  color: var(--ac-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ac-font-label);
  font-size: 14px;
  flex-shrink: 0;
}
.ac-tart__step h2 { margin: 0; font-size: 28px; font-weight: 600; }
.ac-tart__fill {
  margin-left: auto;
  font-family: var(--ac-font-label);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ac-accent-deep);
}

/* --------------------------------------------------------------- flavours */

.ac-tart__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.ac-tart__card {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-card);
  background: var(--ac-surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ac-tart__card.is-chosen {
  border-color: var(--ac-accent);
  box-shadow: 0 0 0 1px var(--ac-accent);
}
.ac-tart__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac-surface-alt);
}
.ac-tart__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ac-tart__initial {
  font-family: var(--ac-font-heading);
  font-size: 40px;
  font-weight: 600;
  color: var(--ac-ink-muted);
}
.ac-tart__cardbody { padding: 14px 16px 16px; }
.ac-tart__cardbody h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}

.ac-tart__stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ac-line-warm);
  border-radius: var(--ac-radius-pill);
  background: var(--ac-field);
  overflow: hidden;
}
.ac-tart__stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--ac-ink-soft);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.ac-tart__stepper button:hover:not(:disabled) { color: var(--ac-accent-deep); }
.ac-tart__stepper button:disabled { opacity: .3; cursor: default; }
.ac-tart__stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 15px;
  color: var(--ac-ink);
}

/* ---------------------------------------------------------------- summary */

.ac-tart__summary {
  position: sticky;
  top: 108px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-card);
  padding: 26px 26px 28px;
}
.ac-tart__summary h3 { margin: 0 0 2px; font-size: 25px; font-weight: 600; }
.ac-tart__sub { margin: 0 0 18px; font-size: 13.5px; color: var(--ac-ink-muted); }

.ac-tart__track {
  height: 8px;
  border-radius: 8px;
  background: var(--ac-panel-warm, #ECE0CB);
  overflow: hidden;
  margin-bottom: 8px;
}
.ac-tart__track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ac-accent), var(--ac-accent-light));
  transition: width .35s ease;
}
.ac-tart__fillnote {
  margin: 0 0 18px;
  font-family: var(--ac-font-label);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ac-accent-deep);
}

.ac-tart__list { list-style: none; margin: 0; padding: 0; }
.ac-tart__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ac-line);
  font-size: 14.5px;
  color: var(--ac-ink-body);
}
.ac-tart__empty {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ac-ink-muted);
}
.ac-tart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ac-line-warm);
  font-family: var(--ac-font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--ac-ink);
}
.ac-tart__submit {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  cursor: pointer;
}
.ac-tart__submit:disabled { opacity: .45; cursor: default; transform: none; }
.ac-tart__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ac-ink-muted);
}

/* ------------------------------------------------------------- promo card */

.ac-tart-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ac-accent);
  border-radius: var(--ac-radius-card);
  padding: 18px 22px;
  margin: 26px 0 0;
  text-decoration: none;
  color: var(--ac-ink-deep);
  box-shadow: 0 8px 20px rgba(194, 152, 47, .24);
  transition: transform .18s;
}
.ac-tart-promo:hover { transform: translateY(-2px); }
.ac-tart-promo strong {
  display: block;
  font-family: var(--ac-font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
}
.ac-tart-promo span { font-size: 13.5px; color: #5A3F14; }
.ac-tart-promo em {
  margin-left: auto;
  font-family: var(--ac-font-label);
  font-style: normal;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* -------------------------------------------------------------- cart meta */

.ac-tart-contents { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ac-ink-muted); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1010px) {
  .ac-tart__body { grid-template-columns: 1fr; gap: 30px; }
  .ac-tart__summary { position: static; }
}
@media (max-width: 560px) {
  .ac-tart__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ac-tart__cardbody { padding: 12px; }
  .ac-tart__cardbody h3 { font-size: 16px; }
}
