/* The Memories of Santa(TM) Collection storefront.
   Values come from the live Squarespace site (design/DESIGN.md). */

:root {
  --white: #ffffff;
  --black: #000000;
  --accent: #a8a6a1; /* buttons, "Sold out" */
  --dark-accent: #38383b; /* mini-cart panel */
  --logo-red: #af1d1d;
  --divider: rgba(100, 100, 100, 0.2);
  --field-line: rgba(0, 0, 0, 0.55);
  /* acumin-pro is the live heading font (Adobe Fonts). It is used when an Adobe Fonts kit with
     Acumin Pro is added to the page; otherwise Archivo (Google Fonts) is used. Only Archivo 400
     and 700 are loaded, so the 500 weight below renders as Archivo 400, which matches Acumin 500. */
  --heading-font: 'acumin-pro', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --page-pad: 4vw;
  --max-width: 1200px;
  --header-h: 102px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0 0 16px;
  white-space: pre-wrap; /* the live site keeps double spaces in its copy */
}

strong {
  font-weight: 700;
}

ul {
  margin: 0 0 16px;
  padding-left: 42px;
}

li {
  margin-bottom: 8px;
}

li p {
  margin: 0;
}

.text-block ul {
  list-style: none;
  padding-left: 0;
}
.text-block ul > li {
  position: relative;
  padding-left: 40px;
}
.text-block ul > li::before {
  content: '•';
  position: absolute;
  left: 24px;
  font-size: 0.8em;
  line-height: 2.25;
}

/* ™ in headings: small and raised, as on the live site */
.tm {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 500;
  margin: 0;
  /* Archivo is wider than Acumin Pro; this keeps the line breaks close to the live site. */
  letter-spacing: -0.02em;
}

/* Squarespace fluid type: --v is the size in rem at the 1200px design width. */
.fluid,
h2,
h3,
h4,
.pd-title,
.pd-price,
.product-title,
.btn,
.product-price,
.product-soldout {
  font-size: min(calc((var(--v) - 1) * 1.2vw + 1rem), max(calc((var(--v) - 1) * 14.4px + 1rem), calc(var(--v) * 1rem)));
}
h2 {
  --v: 2.8;
  line-height: calc(1.4em * (1 + (1 - var(--v)) / 25));
}
h3 {
  --v: 2.2;
  line-height: calc(1.4em * (1 + (1 - var(--v)) / 25));
}
h4 {
  --v: 1.6;
  line-height: calc(1.4em * (1 + (1 - var(--v)) / 25));
}
h4 strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}
.skip-link:focus {
  top: 8px;
}

.container {
  max-width: calc(var(--max-width) + 2 * var(--page-pad));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34px;
}

/* ---------- buttons ---------- */

.btn {
  --v: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 0;
  font-family: var(--body-font);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 1.2em 2.004em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.1s linear;
}
.btn:hover {
  opacity: 0.8;
}
.btn:disabled {
  cursor: default;
  opacity: 1;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
}

.header-inner {
  height: var(--header-h);
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-nav {
  display: flex;
  gap: 20px;
}
.header-nav a,
.mobile-menu a {
  text-decoration: none;
  line-height: 28.8px;
  padding: 1.6px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 calc(100% - 1.6px);
}
.header-nav a.active,
.header-nav a:hover {
  background-size: 100% 1px;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 25px;
}
.icon-cart {
  width: 25px;
  height: 20px;
  fill: currentColor;
}
.cart-count {
  padding-left: 4.67px;
}

.burger {
  display: none;
  width: 47px;
  height: 37px;
  padding: 1px 6px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, opacity 0.2s;
}
.burger span:nth-child(1) {
  top: 8px;
}
.burger span:nth-child(2) {
  top: 18px;
}
.burger span:nth-child(3) {
  top: 28px;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--white);
  z-index: 19;
  display: flex;
  align-items: center;
  padding: 0 35px 22px;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6.8px; /* links 57px apart, as on live */
}
.mobile-menu a {
  font-size: 33.15px;
  line-height: 47px;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 134px var(--page-pad);
  text-align: center;
}
.site-footer p {
  margin: 0;
}

/* ---------- shop ---------- */

.shop-intro {
  padding: 95px 0 96px;
}
.shop-intro h4 {
  margin-bottom: 34px;
}

.product-list {
  padding: 28px var(--page-pad) 300px;
}
.product-list-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 58px;
}
.product-item a {
  display: block;
  text-decoration: none;
}
.product-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f4f4;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.product-title {
  --v: 1.6;
  margin-top: 36px;
  line-height: 1.4;
}
.product-price,
.product-soldout {
  --v: 0.9;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 8px;
}
.product-soldout {
  color: var(--accent);
}

/* ---------- product page ---------- */

.pd {
  padding: 0 var(--page-pad);
}
.breadcrumb {
  padding-top: 43px;
  height: 94px;
  display: flex;
  gap: 8px;
  line-height: 28.8px;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb-sep {
  font-size: 0.8em;
}
.pd-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pd-gallery {
  width: 55%;
  position: relative;
}
.pd-image {
  width: 100%;
  height: auto; /* the height attribute would otherwise beat aspect-ratio */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: none;
}
.pd-image.is-active {
  display: block;
}
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.pd-thumb {
  border: 0;
  padding: 0;
  width: 80px;
  cursor: pointer;
  background: none;
}
.pd-meta {
  width: 39.6%;
  display: flex;
  flex-direction: column;
}
.pd-title {
  --v: 2.8;
  line-height: 1.4;
  margin-bottom: 12px;
}
.pd-price {
  --v: 1.6;
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}
.pd-soldout-mark {
  text-transform: uppercase;
  font-weight: 700;
  margin: -8px 0 16px;
}
.pd-scarcity {
  margin: -8px 0 16px;
}
.pd-desc p {
  margin: 0 0 16px;
}
.pd-add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}
.pd-add .btn-block,
.btn-add {
  flex: 1;
}
.pd-message {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  min-height: 0;
}
.pd-message:empty {
  display: none;
}

.qty-stepper {
  display: flex;
  align-items: center;
  width: 118px;
  height: 55px;
  border-bottom: 1px solid var(--black);
  padding: 0 9.5px;
}
.qty-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.qty-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}
.qty-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.qty-input {
  flex: 1;
  min-width: 0;
  border: 0;
  text-align: center;
  font: 400 16px/27px var(--body-font);
  background: none;
  color: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pd + .site-footer,
main:has(.pd) + .site-footer {
  margin-top: 42px;
}

/* mini-cart dialog after "Add To Cart" */
.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
}
.mini-cart {
  position: fixed;
  top: 33px;
  right: var(--page-pad);
  width: 440px;
  max-width: calc(100vw - 32px);
  background: var(--dark-accent);
  color: var(--white);
  border-radius: 6px;
  padding: 22px;
  z-index: 51;
  font-family: var(--body-font);
}
.mini-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 22px;
}
.mini-cart-close {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.mini-cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 11px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.mini-cart-qty {
  font-size: 12px;
  margin-top: 8px;
}
.mini-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 26px;
}
.mini-cart-actions a,
.mini-cart-actions button {
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--accent);
  font: 500 12px/1 var(--body-font);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.mini-cart-actions a {
  color: var(--accent);
  background: none;
}
.mini-cart-actions button {
  background: var(--accent);
  color: var(--white);
}

/* ---------- about, contact ---------- */

.about {
  padding-top: 47px;
  padding-bottom: 32px;
}
.about-grid {
  display: grid;
  grid-template-columns: 375fr 789fr;
  column-gap: 36px;
  align-items: start;
}
.about h4 {
  margin-bottom: 32px;
}
.about .text-block p {
  margin: 16px 0;
}

.contact {
  padding-top: 95px;
}
.contact h3 {
  margin-bottom: 32px;
}

.contact-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.contact-form legend {
  padding: 0;
  margin-bottom: 8px;
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.name-row label {
  font-size: 14.272px;
  font-weight: 400;
}
.contact-form label {
  display: block;
}
.contact-form .field {
  margin-bottom: 16px;
}
.req {
  font-size: 14.272px;
  opacity: 0.7;
  padding-left: 4px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  padding: 5px 0;
  height: 40px;
  margin-top: 8px;
  font: 300 16px/28.8px var(--body-font);
  background: transparent;
  color: inherit;
}
.contact-form textarea {
  height: 100px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--black);
}
.contact-form .cf-turnstile {
  margin-bottom: 12px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  color: #b00020;
}
.form-success {
  font-size: 16px;
}

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

.cart {
  padding-top: 57.6px;
  min-height: 500px; /* the live cart page keeps the footer this low, even when empty */
}
.cart-title {
  font-size: 24px;
  line-height: 24px;
  margin-bottom: 10px;
}
.cart-empty p {
  font-weight: 400;
  margin: 24px 0;
}
.cart-empty .btn {
  font-size: 17.6px;
  padding: 23.4px 36px;
}
.cart-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 422px;
  column-gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
  line-height: 24px;
}
.cart-row img {
  width: 132px;
  height: 132px;
  object-fit: cover;
}
.cart-row-title {
  font-weight: 500;
  text-decoration: none;
}
.cart-row-note {
  display: block;
  font-size: 14px;
  color: #b00020;
  font-weight: 400;
}
.cart-row-controls {
  display: flex;
  align-items: flex-start;
  margin-left: -22px;
}
.cart-row .qty-stepper {
  border: 0;
  height: 24px;
  width: auto;
  padding: 0;
  gap: 14px;
}
.cart-row .qty-input {
  width: 28px;
  flex: none;
}
.cart-row-price {
  margin-left: auto;
  font-weight: 400;
}
.cart-remove {
  width: 36px;
  height: 36px;
  margin: -7px -7px -7px 7px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cart-remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
}
.cart-summary {
  width: 422px;
  margin-left: auto;
  padding-top: 27px;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}
.cart-subtotal {
  font-size: 22px;
}
.cart-line-small {
  font-weight: 400;
  font-size: 15px;
}
.cart-line-total {
  margin-bottom: 25px;
}
.cart-shipping {
  text-align: right;
  padding-left: 16px;
}
.cart-note {
  margin: -12px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #AF1D1D;
}
.cart-error {
  color: #b00020;
  font-size: 14px;
  line-height: 1.5;
}
.btn-checkout {
  font-weight: 400;
}
.narrow {
  max-width: calc(720px + 2 * var(--page-pad));
}

.not-found {
  padding-top: 95px;
}

/* ---------- mobile header: below 800px, and touch tablets ---------- */

@media (max-width: 799px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  :root {
    --header-h: 84px;
  }
  .header-inner {
    padding: 0 6vw;
  }
  .header-nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-logo img {
    width: 193px;
    height: auto;
  }
}

/* "Added to cart!" is a bottom sheet below 800px, as on live */
@media (max-width: 799px) {
  .mini-cart {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    border-radius: 6px 6px 0 0;
    padding: 16px 16px 22px;
  }
  .mini-cart-head {
    margin-bottom: 16px;
  }
  .mini-cart-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 16px;
  }
}

/* ---------- phones ---------- */

@media (max-width: 767px) {
  :root {
    --page-pad: 6vw;
  }
  .fluid,
  h2,
  h3,
  h4,
  .pd-title,
  .pd-price,
  .product-title,
  .btn,
  .product-price,
  .product-soldout {
    font-size: calc((var(--v) - 1) * min(1.2vh, 10.8px) + 1rem);
  }
  .two-col {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .shop-intro .two-col {
    row-gap: 19px;
  }
  .contact .two-col {
    row-gap: 18px;
  }
  .shop-intro {
    padding: 72px 0 40px;
  }
  .product-list {
    padding-top: 17px;
  }
  .product-list-heading {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    margin-bottom: 10px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  .product-image {
    aspect-ratio: 1 / 1;
  }
  .product-title {
    margin-top: 10px;
  }

  .breadcrumb {
    display: none;
  }
  .pd {
    padding-top: 24px;
  }
  .pd-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-gallery,
  .pd-meta {
    width: 100%;
  }
  .pd-meta {
    padding-top: 28px;
  }
  .pd-add {
    order: 4;
    margin-bottom: 16px;
  }
  .pd-desc {
    order: 5;
  }
  .qty-stepper {
    width: 126px;
    height: 48px;
  }
  .pd-add .btn {
    padding-top: 0;
    padding-bottom: 0;
    height: 50px;
  }

  .about {
    padding-top: 44px;
    padding-bottom: 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .contact {
    padding-top: 72px;
  }


  .cart {
    padding-top: 15px;
    min-height: 482px;
  }
  .cart:has(.cart-summary:not([hidden])) {
    min-height: 750px; /* live leaves this much room under the rows */
  }
  /* The summary panel is fixed to the bottom of the screen: leave room under the footer so the
     footer text can scroll above the panel. */
  body:has(.cart-summary:not([hidden])) {
    padding-bottom: 120px;
  }
  .cart-empty .btn {
    font-size: 17px;
  }
  .cart .container {
    padding: 0 16px;
  }
  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 14px;
    position: relative;
    border-bottom: 0;
  }
  .cart-row img {
    width: 68px;
    height: 68px;
  }
  .cart-row-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 30px;
  }
  .cart-row-controls {
    grid-column: 2;
    margin: 8px 0 0;
  }
  .cart-remove {
    position: absolute;
    top: 16px;
    right: -6px;
    margin: 0;
  }
  .cart-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: auto;
    margin: 0;
    padding: 16px;
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
  .site-footer {
    padding: 110px 6vw;
  }
}

/* ---------- sale: promo bar, homepage block, prices, discount code ---------- */

.promo-bar {
  background: var(--logo-red);
  color: var(--white);
  text-align: center;
  padding: 8px var(--page-pad);
}
.promo-bar[hidden] {
  display: none;
}
.promo-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}
.promo-remove {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 4px;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.promo-notice {
  margin: 0;
  padding: 8px var(--page-pad);
  background: #fde8e8;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.sale-hero {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: center;
  padding: 40px 0 44px;
  margin-bottom: 24px;
}
.sale-hero-title {
  color: var(--logo-red);
  margin: 0 0 12px;
}
.sale-hero p {
  white-space: normal;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.sale-hero-ends {
  font-weight: 500;
}
.sale-hero .btn {
  margin-top: 8px;
}

.price-was {
  color: #6b6b6b;
  font-weight: 300;
  margin-right: 2px;
}
.price-now {
  color: var(--logo-red);
}
.price-tag {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--logo-red);
  padding: 3px 6px;
  vertical-align: middle;
}
.cart-line-discount {
  color: var(--logo-red);
}
.cart-code {
  margin: 0 0 20px;
}
.cart-code label {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.cart-code-row {
  display: flex;
  gap: 8px;
}
.cart-code-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  text-transform: uppercase;
}
.cart-code-row .btn {
  padding: 0.8em 1.4em;
}
.cart-code-message {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}
.cart-line[hidden] {
  display: none;
}
.mini-cart .price-was {
  color: #d0d0d0;
}
.mini-cart .price-now {
  color: var(--white);
  font-weight: 500;
}
