/*
 * Shared visual components for the public storefront.
 * The owner logo, navigation and watercolor footer are intentionally
 * independent from page templates so the same shell is used everywhere.
 */

html {
  scroll-behavior: auto;
}

body {
  color: var(--pc-ink);
  background: var(--pc-paper);
  font-family: var(--pc-font-body);
}

.pc-shell {
  width: min(1120px, calc(100% - 56px));
}

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--pc-ink);
  outline-offset: 4px;
}

.pc-skip-link:focus-visible {
  color: var(--pc-ink);
  background: var(--pc-white);
  box-shadow: 0 0 0 3px var(--pc-coral);
}

.pc-button {
  min-height: 48px;
  padding: 11px 21px;
  color: var(--pc-white);
  background: var(--pc-coral);
  border: 1px solid var(--pc-coral);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(242, 140, 165, .22);
  font-family: var(--pc-font-body);
  font-weight: 750;
  transition: none;
}

.pc-button:hover {
  color: var(--pc-white);
  background: var(--pc-coral-hover);
  border-color: var(--pc-coral-hover);
  transform: none;
}

.pc-button--ghost {
  color: var(--pc-ink);
  background: var(--pc-white);
  border-color: var(--pc-coral);
  box-shadow: none;
}

.pc-button--ghost:hover {
  color: var(--pc-coral-dark);
  background: var(--pc-blush);
}

/* Shared header */
.pc-header {
  position: relative;
  z-index: 30;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(38, 59, 94, .065);
  box-shadow: 0 4px 20px rgba(38, 51, 62, .025);
  backdrop-filter: none;
}

.pc-header__inner {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 112px;
}

.pc-brand-mark {
  display: block;
  justify-self: start;
  width: min(100%, 320px);
  min-width: 0;
  color: var(--pc-ink);
}

.pc-brand-mark--footer {
  width: min(100%, 300px);
}

.pc-brand-mark__image {
  display: block;
  width: 100%;
  line-height: 0;
}

.pc-brand-mark__image img {
  width: 100%;
  height: auto;
}

.pc-nav {
  min-width: 0;
}

.pc-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.7vw, 36px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.pc-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--pc-ink);
  font-size: .91rem;
  font-weight: 750;
  white-space: nowrap;
}

.pc-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--pc-coral);
  content: "";
  transition: none;
}

.pc-nav a:hover::after,
.pc-nav .current-menu-item > a::after,
.pc-nav .current_page_item > a::after,
.pc-nav .current-menu-ancestor > a::after {
  right: 0;
}

.pc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-header-actions > a,
.pc-header-actions > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--pc-ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: none;
}

.pc-header-actions > a:hover,
.pc-header-actions > button:hover {
  color: var(--pc-coral-dark);
  background: var(--pc-blush);
}

.pc-header-actions .pc-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.75;
}

.pc-account-link,
.pc-header-social,
.pc-mobile-account {
  display: none !important;
}

.pc-cart-link {
  position: relative;
}

.pc-cart-count {
  position: absolute;
  top: -3px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  color: var(--pc-white);
  background: var(--pc-coral);
  border: 2px solid var(--pc-white);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}

.pc-menu-toggle {
  display: none;
  padding: 7px;
  color: var(--pc-ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.pc-menu-toggle__line {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.pc-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 20px 0 24px;
  background: rgba(255, 255, 255, .99);
  border-top: 1px solid var(--pc-border);
  border-bottom: 1px solid var(--pc-border);
  box-shadow: 0 18px 42px rgba(41, 52, 65, .1);
}

.pc-search-panel[hidden] {
  display: none;
}

.pc-search-panel form {
  max-width: 760px;
  margin-inline: auto;
}

.pc-search-panel label {
  display: block;
  margin-bottom: 7px;
  color: var(--pc-ink);
  font-size: .76rem;
  font-weight: 800;
}

.pc-search-panel form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.pc-search-panel input {
  min-width: 0;
  padding: 13px 16px;
  color: var(--pc-ink);
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: 10px 0 0 10px;
  outline: 0;
}

.pc-search-panel input:focus-visible {
  position: relative;
  z-index: 1;
  border-color: var(--pc-blue-strong);
  box-shadow: 0 0 0 3px rgba(184, 216, 235, .22);
}

.pc-search-panel button {
  padding: 12px 20px;
  color: var(--pc-white);
  background: var(--pc-ink);
  border: 1px solid var(--pc-ink);
  border-radius: 0 10px 10px 0;
  font-weight: 800;
  cursor: pointer;
}

/* Shared footer with a transparent watercolor layer behind the content. */
.pc-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--pc-ink);
  background: var(--pc-cream);
  border-top: 1px solid rgba(38, 59, 94, .07);
}

.pc-footer__art {
  position: absolute;
  z-index: 0;
  right: 50%;
  bottom: 46px;
  width: min(1240px, 94vw);
  transform: translateX(50%);
  opacity: .32;
  pointer-events: none;
}

.pc-footer__art-image {
  display: block;
  width: 100%;
  height: auto;
}

.pc-footer__grid,
.pc-footer__bottom {
  position: relative;
  z-index: 1;
}

.pc-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(120px, .62fr)) minmax(225px, .92fr);
  gap: clamp(28px, 4.4vw, 54px);
  padding-top: 66px;
  padding-bottom: 108px;
}

.pc-footer__brand > .pc-brand-mark,
.pc-footer__brand > .pc-brand {
  margin-bottom: 19px;
}

.pc-footer__brand p {
  max-width: 345px;
  margin: 14px 0;
  color: #485f78;
  font-size: .88rem;
  line-height: 1.65;
}

.pc-footer__owner {
  max-width: 400px;
  color: #52657c;
  font-size: .74rem;
  font-style: normal;
  line-height: 1.7;
}

.pc-footer__owner strong {
  color: var(--pc-ink);
}

.pc-footer h2 {
  margin: 4px 0 18px;
  color: var(--pc-coral-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pc-footer ul,
.pc-footer-nav {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pc-footer li + li {
  margin-top: 8px;
}

.pc-footer a {
  overflow-wrap: anywhere;
}

.pc-footer__email {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal;
}

.pc-footer__contact > .pc-footer__email {
  font-size: .84rem;
}

.pc-footer a:hover {
  color: var(--pc-coral-dark);
}

.pc-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pc-socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(242, 140, 165, .78);
  border-radius: 50%;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.pc-socials a:hover,
.pc-socials a:focus-visible {
  color: var(--pc-white);
  background: var(--pc-coral-dark);
  border-color: var(--pc-coral-dark);
  transform: translateY(-2px);
}

.pc-socials .pc-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.pc-footer__bottom {
  padding: 17px 0;
  color: #5f6e80;
  background: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(38, 59, 94, .07);
  font-size: .76rem;
  backdrop-filter: blur(5px);
}

.pc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.pc-footer__cookie-settings {
  padding: 4px 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pc-footer__cookie-settings:hover {
  color: var(--pc-coral-dark);
}

.pc-cookie-panel {
  color: var(--pc-ink);
  border-color: rgba(38, 59, 94, .1);
  border-radius: 16px;
}

.pc-cookie-panel h2 {
  font-family: var(--pc-font-body);
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 1040px) {
  .pc-header__inner {
    grid-template-columns: minmax(225px, 280px) minmax(0, 1fr) auto;
    gap: 18px;
  }

  .pc-brand-mark--header {
    width: min(100%, 280px);
  }

  .pc-nav__list {
    gap: 17px;
  }

  .pc-footer__grid {
    grid-template-columns: minmax(250px, 1.2fr) repeat(2, minmax(110px, .58fr)) minmax(215px, .9fr);
    gap: 28px;
  }
}

@media (max-width: 920px) {
  .pc-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 82px;
  }

  .pc-brand-mark--header {
    width: min(100%, 220px);
  }

  .js .pc-menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .pc-header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 1px;
  }

  .pc-header-actions > a,
  .pc-header-actions > button {
    width: 37px;
    height: 37px;
  }

  .pc-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    padding: 14px 22px 22px;
    background: var(--pc-white);
    border-bottom: 1px solid var(--pc-border);
    box-shadow: var(--pc-shadow);
  }

  .js .pc-nav {
    display: none;
  }

  .js .pc-nav.is-open {
    display: block;
  }

  .pc-nav__list {
    display: grid;
    gap: 0;
  }

  .pc-nav li {
    border-bottom: 1px solid var(--pc-border);
  }

  .pc-nav li:last-child {
    border-bottom: 0;
  }

  .pc-nav a {
    display: flex;
    min-height: 0;
    padding: 13px 4px;
  }

  .pc-nav a::after {
    display: none;
  }

  .pc-search-panel {
    padding: 17px 0 20px;
  }

  .pc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .pc-shell {
    width: min(100% - 28px, 700px);
  }

  .pc-footer__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 100px;
    text-align: center;
  }

  .pc-footer__brand {
    grid-column: 1 / -1;
  }

  .pc-footer__brand > .pc-brand-mark,
  .pc-footer__brand > .pc-brand {
    justify-self: center;
  }

  .pc-footer__brand p,
  .pc-footer__owner {
    margin-inline: auto;
  }

  .pc-socials,
  .pc-footer__bottom-inner {
    justify-content: center;
  }

  .pc-footer__bottom-inner {
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .pc-search-panel form > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pc-search-panel input,
  .pc-search-panel button {
    width: 100%;
    border-radius: 10px;
  }

  .pc-footer__art {
    bottom: 44px;
    width: 100vw;
    opacity: .27;
  }

  .pc-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
    padding-bottom: 105px;
  }

  .pc-footer__brand {
    grid-column: auto;
  }

  .pc-footer__bottom-inner {
    display: grid;
    gap: 8px;
  }

  .pc-footer__cookie-settings {
    justify-self: center;
  }
}

@media (max-width: 360px) {
  .pc-shell {
    width: min(100% - 24px, 700px);
  }

  .pc-header__inner {
    gap: 3px;
    min-height: 76px;
  }

  .pc-brand-mark--header {
    width: min(100%, 180px);
  }

  .pc-header-actions > a,
  .pc-header-actions > button {
    width: 34px;
    height: 34px;
  }

  .pc-menu-toggle {
    padding: 5px;
  }

  .pc-footer__grid {
    padding-bottom: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-header *,
  .pc-footer *,
  .pc-button {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Decorative Media Library artwork is never interactive or announced. */
.pc-ornament {
  display: block;
  pointer-events: none;
  user-select: none;
}

.pc-ornament__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
