/* Toh Garden product hotspots. Every rule is scoped to .toh-hs* classes, with
   resets for the theme's (Sober) button and link styles. */

/* ---------- Marker ---------- */
.toh-hs {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  z-index: 6;
  left: var(--hs-x, 50%);
  top: var(--hs-y, 50%);
  width: 44px;               /* touch target */
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* The theme styles button:hover / button:focus (dark background). The marker's
   44px touch area must stay invisible in every state; only the dot is drawn. */
button.toh-hs,
button.toh-hs:hover,
button.toh-hs:focus,
button.toh-hs:focus-visible,
button.toh-hs:active {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
}

@media (max-width: 960px) {
  .toh-hs {
    left: var(--hs-x-t, var(--hs-x, 50%));
    top: var(--hs-y-t, var(--hs-y, 50%));
  }
}

@media (max-width: 600px) {
  .toh-hs {
    left: var(--hs-x-m, var(--hs-x-t, var(--hs-x, 50%)));
    top: var(--hs-y-m, var(--hs-y-t, var(--hs-y, 50%)));
  }
}

.toh-hs__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: rgba(26, 20, 24, 0.62);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.82),
    0 2px 10px rgba(40, 20, 30, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.toh-hs__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 220ms ease;
}

.toh-hs:hover .toh-hs__dot,
.toh-hs.is-open .toh-hs__dot {
  background: rgba(26, 20, 24, 0.86);
  transform: scale(1.14);
}

.toh-hs:hover .toh-hs__dot::after,
.toh-hs.is-open .toh-hs__dot::after {
  transform: scale(1.3);
}

.toh-hs:focus-visible .toh-hs__dot {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px #5a1f4f,
    0 2px 10px rgba(40, 20, 30, 0.28);
}

@media (max-width: 600px) {
  .toh-hs__dot {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
  }
  .toh-hs__dot::after {
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
  }
}

/* ---------- Card (desktop/tablet popover) ---------- */
.toh-hs-pop {
  --hs-ink: #2a1824;
  --hs-muted: #6b5a64;
  --hs-accent: #5a1f4f;
  --hs-sale: #a3214f;
  position: absolute;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(40, 20, 30, 0.18), 0 2px 6px rgba(40, 20, 30, 0.08);
  color: var(--hs-ink);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toh-hs-pop[hidden] {
  display: none;
}

.toh-hs-pop.is-visible {
  opacity: 1;
  transform: none;
}

.toh-hs-pop *,
.toh-hs-pop *::before,
.toh-hs-pop *::after {
  box-sizing: border-box;
}

.toh-hs-pop .toh-hs-card,
.toh-hs-pop .toh-hs-card:hover,
.toh-hs-pop .toh-hs-card:visited,
.toh-hs-pop .toh-hs-card:focus {
  color: var(--hs-ink);
  text-decoration: none;
}

.toh-hs-pop .toh-hs-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  border-radius: 6px;
  outline: none;
}

.toh-hs-pop .toh-hs-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--hs-accent);
}

.toh-hs-card__media {
  flex: none;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 4px;
  background: #f6efeb;
}

.toh-hs-card__media[hidden] {
  display: none;
}

.toh-hs-pop .toh-hs-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.toh-hs-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}

.toh-hs-card__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.toh-hs-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 4px;
}

.toh-hs-card__price[hidden],
.toh-hs-card__was[hidden],
.toh-hs-card__tax[hidden],
.toh-hs-card__stock[hidden] {
  display: none;
}

.toh-hs-card__now {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.toh-hs-card__now.is-sale {
  color: var(--hs-sale);
}

.toh-hs-pop .toh-hs-card__was {
  color: var(--hs-muted);
  font-size: 13px;
  text-decoration: line-through;
}

.toh-hs-card__tax {
  color: var(--hs-muted);
  font-size: 11.5px;
  line-height: 1.3;
}

.toh-hs-card__stock {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
}

.toh-hs-card__view {
  margin-top: 4px;
  color: var(--hs-accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}

.toh-hs-card__stock.is-out {
  color: #9b2c2c;
}

.toh-hs-card__stock.is-low,
.toh-hs-card__stock.is-backorder {
  color: #8a5a00;
}

.toh-hs-card__go {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hs-accent);
  color: #ffffff;
  transition: transform 180ms ease, background-color 180ms ease;
}

.toh-hs-card:hover .toh-hs-card__go {
  background: #7a2a6a;
  transform: translateX(2px);
}

/* Close button only appears in the mobile sheet */
.toh-hs-pop .toh-hs-pop__close {
  all: unset;
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--hs-muted);
  cursor: pointer;
  text-align: center;
}

.toh-hs-pop .toh-hs-pop__close svg {
  display: inline-block;
  margin-top: 13px;
}

.toh-hs-pop .toh-hs-pop__close:focus-visible {
  box-shadow: inset 0 0 0 2px var(--hs-accent);
}

/* ---------- Mobile: bottom sheet ---------- */
.toh-hs-pop.is-sheet {
  position: fixed;
  top: auto !important;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px !important;
  width: auto;
  max-width: none;
  border-radius: 10px;
  box-shadow: 0 -4px 30px rgba(40, 20, 30, 0.22);
  transform: translateY(16px);
}

.toh-hs-pop.is-sheet.is-visible {
  transform: none;
}

.toh-hs-pop.is-sheet .toh-hs-card {
  padding: 14px 52px 14px 14px;
}

.toh-hs-pop.is-sheet .toh-hs-card__go {
  align-self: flex-end;
}

.toh-hs-pop.is-sheet .toh-hs-pop__close {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .toh-hs__dot,
  .toh-hs__dot::after,
  .toh-hs-pop,
  .toh-hs-card__go {
    transition: none;
  }
  .toh-hs:hover .toh-hs__dot,
  .toh-hs.is-open .toh-hs__dot {
    transform: none;
  }
  .toh-hs-pop,
  .toh-hs-pop.is-sheet {
    transform: none;
  }
}

/* Product listing below the hero. Data and prices come from the same cached
   WooCommerce payload as the hotspot cards. */
.toh-showcase,
.toh-showcase * {
  box-sizing: border-box;
}

.toh-showcase {
  background: #fffaf7;
  color: #2d2028;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(48px, 5.5vw, 84px) 20px;
}

.toh-showcase__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.toh-showcase__header {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(280px, 0.45fr);
  gap: 8px 48px;
  align-items: end;
  margin-bottom: 30px;
}

.toh-showcase__header p {
  grid-column: 1;
  margin: 0;
  color: #6f1d4d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toh-showcase__header h2 {
  grid-column: 1;
  margin: 0;
  color: #4e183d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: none;
}

.toh-showcase__header > span {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #6a5963;
  font-size: 16px;
  line-height: 1.65;
}

.toh-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.toh-showcase__card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(170px, 0.78fr) minmax(190px, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(78, 24, 61, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(47, 22, 37, 0.07);
}

.toh-showcase__image {
  position: relative;
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f1ec, #fff 70%);
  padding: 20px;
}

.toh-showcase__image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.toh-showcase__image:hover img,
.toh-showcase__image:focus-visible img {
  transform: scale(1.025);
}

.toh-showcase__sale {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: #6f1d4d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  text-transform: uppercase;
}

.toh-showcase__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.toh-showcase__body h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 600;
  line-height: 1.24;
  text-transform: none;
}

.toh-showcase__body h3 a,
.toh-showcase__body h3 a:visited,
.toh-showcase__body h3 a:hover,
.toh-showcase__body h3 a:focus-visible {
  color: #2d2028 !important;
  text-decoration: none;
}

.toh-showcase__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.toh-showcase__now {
  color: #4e183d;
  font-size: 19px;
  font-weight: 700;
}

.toh-showcase__now.is-sale {
  color: #a32545;
}

.toh-showcase__price del {
  color: #897982;
  font-size: 14px;
}

.toh-showcase__tax {
  margin: 4px 0 0;
  color: #776772;
  font-size: 12px;
  line-height: 1.4;
}

.toh-showcase__link,
.toh-showcase__link:visited,
.toh-showcase__link:hover,
.toh-showcase__link:focus-visible {
  color: #6f1d4d !important;
  text-decoration: none;
}

.toh-showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}

.toh-showcase__link span {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 0.7;
}

.toh-showcase a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(111, 29, 77, 0.35);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .toh-showcase__header {
    grid-template-columns: 1fr;
  }

  .toh-showcase__header > span {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
  }

  .toh-showcase__card {
    grid-template-columns: 1fr;
  }

  .toh-showcase__image {
    min-height: 240px;
  }

  .toh-showcase__body {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .toh-showcase {
    padding-right: 14px;
    padding-left: 14px;
  }

  .toh-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .toh-showcase__image {
    min-height: 164px;
    padding: 12px;
  }

  .toh-showcase__image img {
    height: 150px;
  }

  .toh-showcase__body {
    justify-content: flex-start;
    padding: 16px 14px 18px;
  }

  .toh-showcase__body h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .toh-showcase__now {
    font-size: 16px;
  }

  .toh-showcase__price {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .toh-showcase__tax {
    font-size: 10px;
  }

  .toh-showcase__link {
    margin-top: 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toh-showcase__image img {
    transition: none;
  }

  .toh-showcase__image:hover img,
  .toh-showcase__image:focus-visible img {
    transform: none;
  }
}
