.ssg {
  display: block;
  width: 100%;
  position: relative;
  background: var(--ssg-bg, #fff);
  color: var(--ssg-text, #68746a);
  box-sizing: border-box;
}

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

.ssg__inner {
  width: 100%;
  max-width: var(--ssg-max-width, 1440px);
  margin: 0 auto;
  padding: var(--ssg-pad-top, 70px) var(--ssg-pad-side, 50px) var(--ssg-pad-bottom, 75px);
}

.ssg__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.ssg__header--left { margin-right: auto; text-align: left; }
.ssg__header--center { margin-inline: auto; text-align: center; }
.ssg__header--right { margin-left: auto; text-align: right; }

.ssg__eyebrow {
  margin: 0 0 5px;
  color: var(--ssg-text, #68746a);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ssg__heading {
  margin: 0;
  color: var(--ssg-heading, #293b2b);
  font-family: var(--sort-title-font, Marcellus, Georgia, serif);
  font-size: var(--ssg-heading-size, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.ssg__body {
  margin-top: 4px;
  color: var(--ssg-text, #68746a);
  font-size: var(--ssg-body-size, 14px);
  line-height: 1.5;
}

.ssg__body p { margin: 0; }

.ssg__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.ssg__tab {
  min-height: 30px;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid color-mix(in srgb, var(--ssg-accent, #293b2b) 42%, transparent);
  border-radius: 999px;
  background: var(--ssg-tab-bg, #fff);
  color: var(--ssg-tab-text, #293b2b);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ssg__tab:hover,
.ssg__tab:focus-visible {
  border-color: var(--ssg-accent, #293b2b);
}

.ssg__tab.is-active {
  border-color: var(--ssg-accent, #293b2b);
  background: var(--ssg-accent, #293b2b);
  color: #fff;
}

.ssg__panel[hidden] { display: none !important; }

.ssg__scene-track {
  display: grid;
  grid-template-columns: var(--ssg-columns, repeat(auto-fit, minmax(220px, 1fr)));
  gap: var(--ssg-gap, 8px);
  align-items: stretch;
}

.ssg__scene {
  position: relative;
  min-width: 0;
}

.ssg__scene-media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ssg-ratio, 3 / 4);
}

.ssg__scene-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ssg__scene-image,
.ssg__scene-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--ssg-radius, 0);
  object-fit: cover;
  object-position: var(--ssg-object-position, center);
  background: #eef0eb;
}

.ssg__hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ssg__hotspot {
  position: absolute;
  top: var(--ssg-y, 50%);
  left: var(--ssg-x, 50%);
  z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.ssg__marker {
  display: grid;
  place-items: center;
  width: var(--ssg-marker-custom-size, var(--ssg-marker-size, 26px));
  height: var(--ssg-marker-custom-size, var(--ssg-marker-size, 26px));
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: var(--ssg-accent, #293b2b);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ssg__marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  animation: ssg-pulse 2s ease-out infinite;
}

.ssg__marker:hover,
.ssg__marker:focus-visible,
.ssg__hotspot.is-open .ssg__marker {
  transform: scale(1.12);
  box-shadow: 0 3px 16px rgba(0, 0, 0, .3);
}

.ssg__marker:disabled {
  opacity: .5;
  cursor: default;
}

.ssg__marker img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.ssg__marker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes ssg-pulse {
  0% { transform: scale(.8); opacity: .8; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

.ssg__product-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 12;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  width: 300px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(41, 59, 43, .18);
  border-radius: 10px;
  background: #fff;
  color: #293b2b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--ssg-card-shift, 0px))) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ssg__product-card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--ssg-card-shift, 0px));
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(41, 59, 43, .18);
  border-bottom: 1px solid rgba(41, 59, 43, .18);
  background: #fff;
  transform: translate(-50%, -6px) rotate(45deg);
}

.ssg__hotspot.is-below .ssg__product-card {
  top: calc(100% + 14px);
  bottom: auto;
}

.ssg__hotspot.is-below .ssg__product-card::after {
  top: auto;
  bottom: 100%;
  border: 0;
  border-left: 1px solid rgba(41, 59, 43, .18);
  border-top: 1px solid rgba(41, 59, 43, .18);
  transform: translate(-50%, 6px) rotate(45deg);
}

.ssg__hotspot.is-open .ssg__product-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(calc(-50% + var(--ssg-card-shift, 0px))) translateY(0);
}

.ssg__product-media {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 7px;
  background: #f2f3ef;
}

.ssg__product-media img,
.ssg__product-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssg__product-content { min-width: 0; }

.ssg__product-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #293b2b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ssg__product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-top: 5px;
}

.ssg__product-price {
  color: #293b2b;
  font-size: 13px;
  font-weight: 700;
}

.ssg__product-compare {
  color: #9aa09a;
  font-size: 10px;
  text-decoration: line-through;
}

.ssg__product-discount,
.ssg__product-options {
  display: none;
}

.ssg__product-status {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.2;
}

.ssg__product-status.is-available { color: #34804b; }
.ssg__product-status.is-sold-out { color: #8a4444; }

.ssg__product-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  color: #293b2b;
}

.ssg__product-link svg { width: 22px; height: 22px; }
.ssg__backdrop { display: none; }

@media (max-width: 749px) {
  .ssg__inner {
    overflow: hidden;
    padding: var(--ssg-pad-top-mobile, 40px) var(--ssg-pad-side-mobile, 15px) var(--ssg-pad-bottom-mobile, 40px);
  }

  .ssg__header { margin-bottom: 18px; }
  .ssg__heading { font-size: var(--ssg-heading-size-mobile, 28px); }
  .ssg__body { font-size: var(--ssg-body-size-mobile, 13px); }

  .ssg__tabs {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin-right: calc(-1 * var(--ssg-pad-side-mobile, 15px));
    margin-bottom: 16px;
    padding-right: var(--ssg-pad-side-mobile, 15px);
    scrollbar-width: none;
  }

  .ssg__tabs::-webkit-scrollbar,
  .ssg__scene-track::-webkit-scrollbar { display: none; }

  .ssg__tab {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 12px;
    font-size: 12px;
  }

  .ssg__scene-track {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: var(--ssg-gap, 8px);
    width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    margin-right: calc(-1 * var(--ssg-pad-side-mobile, 15px));
    padding-right: max(15vw, var(--ssg-pad-side-mobile, 15px));
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ssg__scene {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .ssg__hotspot {
    position: static;
    top: var(--ssg-y-mobile, var(--ssg-y, 50%));
    left: var(--ssg-x-mobile, var(--ssg-x, 50%));
    transform: none;
  }

  .ssg__scene-media.has-open-product::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: var(--ssg-radius, 0);
    background: rgba(0, 0, 0, .48);
    pointer-events: none;
  }

  .ssg__marker {
    position: absolute;
    top: var(--ssg-y-mobile, var(--ssg-y, 50%));
    left: var(--ssg-x-mobile, var(--ssg-x, 50%));
    z-index: 3;
    width: var(--ssg-marker-custom-size-mobile, var(--ssg-marker-size-mobile, 28px));
    height: var(--ssg-marker-custom-size-mobile, var(--ssg-marker-size-mobile, 28px));
    transform: translate(-50%, -50%);
  }

  .ssg__marker:hover,
  .ssg__marker:focus-visible,
  .ssg__hotspot.is-open .ssg__marker {
    transform: translate(-50%, -50%) scale(1.12);
  }

  .ssg__product-card,
  .ssg__hotspot.is-below .ssg__product-card {
    position: absolute;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 6;
    width: 72%;
    max-width: 300px;
    min-height: 0;
    margin: 0;
    display: block;
    padding: 12px 12px 34px;
    transform: translate(-50%, -50%) scale(.96);
  }

  .ssg__product-card::after,
  .ssg__hotspot.is-below .ssg__product-card::after { display: none; }

  .ssg__hotspot.is-open .ssg__product-card {
    transform: translate(-50%, -50%) scale(1);
  }

  .ssg__product-media {
    width: 48%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ssg__product-content {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    overflow: hidden;
  }
  .ssg__product-title {
    display: block;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
  }
  .ssg__product-price { font-size: 14px; }
  .ssg__product-compare { font-size: 9px; }

  .ssg__product-discount {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    margin-top: 4px;
    padding: 2px 5px;
    border-radius: 2px;
    background: #dbe89a;
    color: #293b2b;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
  }

  .ssg__product-status {
    margin-top: 3px;
    font-size: 7px;
  }

  .ssg__product-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    overflow: hidden;
  }

  .ssg__product-option {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ssg__product-option-label {
    overflow: hidden;
    margin: 0 0 2px;
    color: #68746a;
    font-size: 7px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ssg__product-option-values {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .ssg__product-option-values::-webkit-scrollbar { display: none; }

  .ssg__product-option-value {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 14px;
    padding: 1px 4px;
    border: 1px solid #d9ddd6;
    border-radius: 999px;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    color: #68746a;
    font: inherit;
    font-size: 6px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }

  .ssg__product-option-value.is-selected {
    border-color: #293b2b;
    box-shadow: inset 0 0 0 1px #293b2b;
  }

  .ssg__product-option-value.is-swatch {
    min-width: 14px;
    width: 14px;
    height: 14px;
    min-height: 14px;
    padding: 0;
    border-radius: 50%;
  }

  .ssg__product-link {
    position: absolute;
    right: 8px;
    bottom: 6px;
  }

  .ssg__backdrop {
    display: none;
  }

  .ssg.has-open-card .ssg__backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ssg__marker::after { animation: none; }
  .ssg__marker,
  .ssg__product-card,
  .ssg__tab { transition: none; }
}
