@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");
/* Add your licensed Themysion webfont at this path to enable it. */
@font-face {
  font-family: Themysion;
  src: url("fonts/Themysion.woff2") format("woff2");
  font-display: swap;
}
.shop-page {
  --shop-wine: #8b2e52;
  --shop-ink: #181818;
  --shop-line: #e5d9df;
  --shop-soft: #faf7f8;
  background: white;
  color: var(--shop-ink);
  font-family: "Special Elite", "Courier New", monospace;
  line-height: 1.6;
  margin: 0;
}
.shop-page [hidden] {
  display: none !important;
}
.shop-page * {
  box-sizing: border-box;
}
.shop-page button,
.shop-page input,
.shop-page select,
.shop-page textarea {
  font: inherit;
}
.shop-page a {
  color: var(--shop-wine);
}
.shop-page :focus-visible {
  outline: 2px solid var(--shop-wine);
  outline-offset: 4px;
}
.shop-main {
  max-width: 1180px;
  margin: auto;
  padding: 30px 35px 40px;
}
.shop-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.brand-logo {
  width: 270px;
  height: 180px;
  overflow: hidden;
  margin: 0 auto;
}
.brand-logo img {
  display: block;
  width: 340px;
  max-width: none;
  height: 340px;
  object-fit: contain;
  margin: -64px -35px 0;
}
.shop-page .shop-script {
  font-family: Themysion, "Brush Script MT", "Segoe Script", cursive;
  color: var(--shop-wine);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.4;
  margin: 12px 0;
}
.shop-page h1 {
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 400;
  margin: 13px 0 18px;
  line-height: 1.3;
}
.shop-page h2 {
  font-size: 25px;
  font-weight: 400;
}
.donation {
  font-size: 14px;
  max-width: 650px;
  margin: 0 auto 15px;
}
.donation span,
.donation strong {
  color: var(--shop-wine);
}
.intro-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: 12px;
}
.cart-toggle {
  position: fixed;
  top: 25px;
  left: 25px;
  z-index: 1000;
  border: 1px solid var(--shop-wine);
  background: white;
  color: var(--shop-wine);
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px !important;
}
.cart-toggle span {
  display: inline-grid;
  place-items: center;
  background: var(--shop-wine);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: 7px;
}
.shop-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--shop-line);
  padding: 25px 0 16px;
}
.shop-filters button {
  border: 1px solid var(--shop-line);
  background: white;
  color: var(--shop-ink);
  padding: 8px 15px;
  cursor: pointer;
  font-size: 13px;
}
.shop-filters button[aria-pressed="true"] {
  background: var(--shop-wine);
  color: white;
  border-color: var(--shop-wine);
}
.gallery-tools {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 11px;
  align-items: center;
}
.gallery-tools select {
  max-width: 200px;
  border: 1px solid var(--shop-line);
  background: white;
  padding: 5px;
  color: var(--shop-ink);
}
.available-check {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-page input[type="checkbox"] {
  accent-color: var(--shop-wine);
}
.gallery-note {
  text-align: center;
  font-size: 11px;
  color: #655d61;
  margin: 15px 0 28px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 22px;
}
.product-media {
  aspect-ratio: 1;
  background: var(--shop-soft);
  position: relative;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-card.unavailable .product-media img {
  opacity: 0.35;
  filter: grayscale(1);
}
.product-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--shop-wine);
  font-size: 25px;
  transform: rotate(-10deg);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.product-card h3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin: 14px 0 6px;
}
.product-card p {
  font-size: 11px;
  margin: 5px 0;
  color: #5f565b;
}
.product-card .product-price {
  font-size: 14px;
  color: var(--shop-ink);
  margin: 11px 0;
}
.product-card button {
  border: 1px solid var(--shop-wine);
  background: white;
  color: var(--shop-wine);
  padding: 7px 10px;
  width: 100%;
  cursor: pointer;
  font-size: 11px;
}
.product-card button:hover:not(:disabled) {
  background: var(--shop-wine);
  color: white;
}
.product-card button:disabled {
  color: #71676c;
  border-color: var(--shop-line);
  cursor: default;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed var(--shop-line);
  background: var(--shop-soft);
}
.empty-state > p:last-child {
  font-size: 13px;
}
.commissions {
  text-align: center;
  padding: 55px 20px;
  margin-top: 55px;
  border-top: 1px solid var(--shop-line);
  border-bottom: 1px solid var(--shop-line);
}
.commissions > p:not(.shop-script) {
  font-size: 13px;
  max-width: 570px;
  margin: 0 auto 22px;
}
.shop-button {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--shop-wine);
  background: var(--shop-wine);
  color: white !important;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}
.shop-footer {
  text-align: center;
  font-size: 11px;
  padding: 25px 0;
}
.shop-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  background: var(--shop-wine);
  color: white;
  padding: 10px 18px;
  font-size: 12px;
  max-width: 90%;
  pointer-events: none;
}
.shop-toast:empty {
  display: none;
}
.cart-dialog {
  border: 1px solid var(--shop-line);
  padding: 0;
  width: min(600px, calc(100% - 24px));
  max-height: 90vh;
  color: var(--shop-ink);
  background: white;
}
.cart-dialog::backdrop {
  background: #17171788;
}
.cart-inner {
  padding: 30px;
  position: relative;
}
.close-cart {
  position: absolute;
  top: 9px;
  right: 15px;
  font-size: 30px !important;
  background: none;
  border: 0;
  cursor: pointer;
}
.cart-dialog .shop-script {
  font-size: 27px;
}
.cart-line {
  border-bottom: 1px solid var(--shop-line);
  padding: 15px 0;
}
.cart-line p {
  font-size: 12px;
  margin: 0 0 7px;
}
.cart-line-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.cart-line-controls input {
  width: 65px;
  padding: 5px;
  border: 1px solid var(--shop-line);
}
.remove-item,
.copy-button {
  border: 1px solid var(--shop-line);
  background: white;
  color: var(--shop-wine);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
}
.checkout-note {
  font-size: 11px;
  color: #655d61;
}
.cart-inner fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
}
.cart-inner legend {
  margin-bottom: 10px;
  font-size: 18px;
}
.cart-inner form label {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
.cart-inner input:not([type="checkbox"]),
.cart-inner textarea,
.cart-inner select {
  display: block;
  width: 100%;
  border: 1px solid #cfc0c7;
  background: white;
  color: var(--shop-ink);
  padding: 10px;
  margin-top: 5px;
  border-radius: 0;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.confirm-check {
  display: flex !important;
  gap: 10px;
  align-items: start;
}
.confirm-check input {
  margin-top: 5px;
}
.payment-note {
  padding: 15px;
  background: var(--shop-soft);
  font-size: 12px;
  margin: 20px 0;
}
.payment-note p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.copy-button {
  margin: 10px 0 0 8px;
}
#checkout-feedback {
  font-size: 12px;
  color: var(--shop-wine);
}
.skip-link {
  position: fixed;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 5000;
}
.skip-link:focus {
  top: 0;
}
/* Palette imagery and interaction remain yours. Stack the three swatches
   under the palette in Portfolio / Shop / Commissions order. */
.shop-page .paint-nav.is-open .paint-swatch-1 {
  transform: translate(50%, -50%) translate(-3.5rem, 4.5rem) rotate(-3deg)
    scale(1);
}
.shop-page .paint-nav.is-open .paint-swatch-3 {
  transform: translate(50%, -50%) translate(-3.5rem, 8rem) rotate(2deg) scale(1);
}
.shop-page .paint-nav.is-open .paint-swatch-4 {
  transform: translate(50%, -50%) translate(-3.5rem, 11.5rem) rotate(-2deg)
    scale(1);
}
.palette-fallback {
  font-size: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: white;
  border: 1px solid #e5d9df;
  border-radius: 50%;
}
.shop-page .missing-swatch {
  background: white;
  border: 1px solid var(--shop-line);
  border-radius: 45% 35% 42% 35%;
}
@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 18px;
  }
  .shop-main {
    padding: 35px 25px;
  }
  .cart-toggle {
    left: 15px;
    top: 18px;
  }
}
@media (max-width: 600px) {
  .shop-main {
    padding: 70px 18px 25px;
  }
  .brand-logo {
    height: 155px;
  }
  .brand-logo img {
    margin-top: -80px;
  }
  .shop-intro {
    margin-bottom: 20px;
  }
  .donation {
    font-size: 12px;
  }
  .shop-intro .shop-script {
    font-size: 27px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 14px;
  }
  .shop-filters {
    gap: 6px;
  }
  .shop-filters button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .gallery-tools {
    gap: 12px;
    flex-wrap: wrap;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .cart-inner {
    padding: 25px 18px;
  }
  .cart-inner .shop-script {
    padding-right: 15px;
    font-size: 23px;
  }
  .form-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .copy-button {
    display: block;
    margin-left: 0;
  }
  .commissions {
    padding: 30px 0;
  }
  .intro-links {
    font-size: 11px;
  }
}
