.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

body.has-site-header-hidden {
  --product-gallery-sticky-top: 20px;
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(84px, 108px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  position: sticky;
  top: var(--product-gallery-sticky-top, clamp(196px, 15vh, 196px));
  align-self: start;
  transition: top 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery {
    transition: none;
  }
}

.product-gallery--single {
  grid-template-columns: 1fr;
}

.product-gallery--single .product-gallery__frame {
  grid-column: auto;
}

.product-gallery__frame {
  grid-column: 2;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.product-gallery__thumbs-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  align-self: start;
  overflow: hidden;
}

.product-gallery__thumbs-viewport {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bfd2eb transparent;
  scrollbar-gutter: stable;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-gallery__thumb {
  padding: 0;
  border: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
  cursor: pointer;
}

.product-gallery__thumb:hover {
  box-shadow: inset 0 0 0 1px #bfd2eb;
}

.product-gallery__thumb.is-active {
  box-shadow:
    inset 0 0 0 2px #2057d4,
    0 10px 24px rgba(32, 87, 212, 0.12);
}

.product-gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #17355f;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 35, 67, 0.08);
}

.product-gallery__nav[hidden] {
  display: none;
}

.product-gallery__nav[disabled] {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.product-detail__content {
  display: grid;
  gap: 18px;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: #526173;
  font-size: 0.94rem;
  line-height: 1.5;
}

.product-detail__meta-item {
  display: inline;
}

.product-detail__meta-label {
  color: #6b7787;
  font-weight: 700;
}

.product-detail__meta-link {
  color: #2057d4;
  font-weight: 700;
  text-decoration: none;
}

.product-detail__meta-link:hover {
  text-decoration: underline;
}

.product-detail__price-tools {
  display: grid;
  gap: 8px;
}

.product-detail__utilities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.product-detail__utility-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #2057d4;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.product-detail__utility-action:hover {
  color: #17355f;
}

.product-detail__utility-action:focus-visible {
  outline: 3px solid #2057d4;
  outline-offset: 2px;
}

.product-detail__utility-action--share {
  justify-content: center;
  width: 44px;
  min-width: 44px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  text-decoration: none;
}

.product-detail__utility-action--share svg {
  width: 19px;
  height: 19px;
}

.product-detail__utility-action--sizing {
  gap: 6px;
}

.product-detail__utility-action--sizing svg {
  width: 18px;
  height: 18px;
}

.product-share-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 20, 41, 0.28);
}

.product-share-dialog::backdrop {
  background: rgba(7, 20, 41, 0.58);
  backdrop-filter: blur(3px);
}

.product-share-dialog__header,
.product-share-dialog__body {
  display: flex;
  gap: 18px;
}

.product-share-dialog__header {
  align-items: start;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e6ecf4;
}

.product-share-dialog__header h2,
.product-share-dialog__product-name,
.product-share-dialog__qr figcaption,
.product-share-dialog__status {
  margin: 0;
}

.product-share-dialog__header h2 {
  color: #0f2a52;
  font-size: 1.35rem;
}

.product-share-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #ffffff;
  color: #17355f;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.product-share-dialog__body {
  align-items: center;
  padding: 20px 22px 24px;
}

.product-share-dialog__qr {
  display: grid;
  flex: 0 0 128px;
  width: 128px;
  margin: 0;
  gap: 8px;
  text-align: center;
}

.product-share-dialog__qr > img {
  display: block;
  width: 128px;
  height: 128px;
  border: 1px solid #e6ecf4;
  border-radius: 12px;
}

.product-share-dialog__qr figcaption,
.product-share-dialog__status {
  color: #526173;
  font-size: 0.78rem;
  line-height: 1.35;
}

.product-share-dialog__content {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}

.product-share-dialog__product-name {
  color: #17355f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-share-dialog__copy-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.product-share-dialog__copy-row input {
  min-width: 0;
  flex: 1 1 auto;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #cbd7e7;
  border-radius: 10px;
  color: #34465d;
  font: inherit;
}

.product-share-dialog__copy-control {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.product-share-dialog__copy-icon {
  width: 20px;
  height: 20px;
}

.product-share-dialog__status {
  color: #1b7c45;
  font-weight: 700;
}

.product-share-dialog__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-share-dialog__platform {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  color: #2057d4;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.product-share-dialog__platform-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.product-share-dialog__platform--whatsapp {
  color: #167b47;
}

.product-share-dialog__platform--facebook {
  color: #1c5db7;
}

.product-share-dialog__platform--x {
  color: #172437;
}

.product-share-dialog__platform--instagram {
  color: #a23972;
}

.product-share-dialog__platform--tiktok {
  color: #172437;
}

.product-share-dialog__platform:hover {
  border-color: #a9c2ed;
  background: #f4f8ff;
}

.product-share-dialog :is(button, input, a):focus-visible {
  outline: 3px solid #2057d4;
  outline-offset: 2px;
}
}

.product-detail__purchase {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-top: 4px;
}

.product-detail__availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #526173;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.product-detail__availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.product-detail__availability--ok {
  color: #1b7c45;
}

.product-detail__availability--warn {
  color: #9f6a00;
}

.product-detail__availability--danger {
  color: #b52f2f;
}

.product-detail__availability--muted {
  color: #6b7787;
}

.product-detail__purchase .checkout-actions {
  width: min(100%, 470px);
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.product-detail__selection-actions {
  width: min(100%, 470px);
}

.product-detail__selection-cta {
  width: 100%;
  min-height: 52px;
}

.product-detail__selection-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #b52f2f;
  font-weight: 700;
  line-height: 1.5;
}

.product-detail__variant-group.is-required {
  border-radius: 22px;
  background: rgba(254, 242, 242, 0.72);
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.42),
    0 0 0 6px rgba(239, 68, 68, 0.08);
  animation: product-selection-attention 0.48s ease-out;
}

.product-detail__form-fields-gate {
  position: relative;
  border-radius: 18px;
}

.product-detail__form-fields-gate.is-required {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.32);
  animation: product-selection-attention 0.48s ease-out;
}

.product-detail__form-fields-gate-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.product-detail__form-fields-gate-button:focus-visible {
  outline: 3px solid #2057d4;
  outline-offset: 3px;
}

@keyframes product-selection-attention {
  0%, 100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(-5px);
  }

  65% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail__variant-group.is-required,
  .product-detail__form-fields-gate.is-required {
    animation: none;
  }
}

.product-detail__buy-now-form {
  width: 100%;
}

.product-detail__buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--storefront-action-accent-border);
  border-radius: 999px;
  background: var(--storefront-action-accent);
  color: var(--storefront-action-accent-text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(var(--storefront-action-shadow-rgb), 0.12);
}

.product-detail__buy-now:hover {
  background: var(--storefront-action-accent-hover);
  color: var(--storefront-action-accent-text);
}

.product-detail__buy-now:focus-visible {
  outline: 3px solid var(--storefront-action-focus);
  outline-offset: 3px;
}

.product-detail__lead {
  margin: 0;
  color: #415062;
  line-height: 1.8;
}

.product-detail__lead--rich::after {
  content: "";
  display: block;
  clear: both;
}

.product-detail__lead--rich > :first-child {
  margin-top: 0;
}

.product-detail__lead--rich > :last-child {
  margin-bottom: 0;
}

.product-detail__lead--rich h2,
.product-detail__lead--rich h3,
.product-detail__lead--rich h4 {
  margin: 0 0 0.7rem;
  color: #0f2a52;
  line-height: 1.15;
}

.product-detail__lead--rich p,
.product-detail__lead--rich ul,
.product-detail__lead--rich ol,
.product-detail__lead--rich blockquote {
  margin: 0 0 1rem;
}

.product-detail__lead--rich ul,
.product-detail__lead--rich ol {
  padding-left: 1.4rem;
}

.product-detail__lead--rich a {
  color: #2057d4;
  font-weight: 700;
}

.product-detail__lead--rich [data-text-align="left"] {
  text-align: left;
}

.product-detail__lead--rich [data-text-align="center"] {
  text-align: center;
}

.product-detail__lead--rich [data-text-align="right"] {
  text-align: right;
}

.product-detail__lead--rich [data-text-align="justify"] {
  text-align: justify;
}

.product-detail__lead--rich div[data-layout="two-column"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 1rem;
}

.product-detail__lead--rich div[data-layout-column] {
  min-width: 0;
}

.product-detail__lead--rich div[data-layout-column] > :first-child {
  margin-top: 0;
}

.product-detail__lead--rich div[data-layout-column] > :last-child {
  margin-bottom: 0;
}

.product-detail__lead--rich table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.product-detail__lead--rich th,
.product-detail__lead--rich td {
  padding: 12px 14px;
  border: 1px solid #dbe5f2;
  vertical-align: top;
  background: #ffffff;
}

.product-detail__lead--rich th {
  background: #f8fbff;
  color: #0f2a52;
  font-weight: 700;
}

.product-detail__lead--rich td > :first-child,
.product-detail__lead--rich th > :first-child {
  margin-top: 0;
}

.product-detail__lead--rich td > :last-child,
.product-detail__lead--rich th > :last-child {
  margin-bottom: 0;
}

.product-detail__lead--rich img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #ffffff;
}

.product-detail__lead--rich span[data-media-align],
.product-detail__lead--rich span[data-media-size] {
  display: block;
  max-width: 100%;
}

.product-detail__lead--rich span[data-media-align="left"] {
  float: left;
  margin: 0.35rem 1rem 1rem 0;
}

.product-detail__lead--rich span[data-media-align="center"] {
  float: none;
  margin: 1rem auto;
}

.product-detail__lead--rich span[data-media-align="right"] {
  float: right;
  margin: 0.35rem 0 1rem 1rem;
}

.product-detail__lead--rich span[data-media-size="small"] {
  width: min(36%, 200px);
}

.product-detail__lead--rich span[data-media-size="medium"] {
  width: min(48%, 320px);
}

.product-detail__lead--rich span[data-media-size="large"] {
  width: min(64%, 460px);
}

.product-detail__lead--rich span[data-media-size="full"] {
  width: 100%;
  max-width: 100%;
}

.product-detail__lead--rich span[data-media-size="full"][data-media-align="left"],
.product-detail__lead--rich span[data-media-size="full"][data-media-align="right"] {
  float: none;
  margin: 1rem 0;
}

.product-detail__lead--rich span[data-media-align] img,
.product-detail__lead--rich span[data-media-size] img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.product-detail__lead--rich figure.image {
  display: table;
  width: auto;
  max-width: 100%;
  margin: 1rem 0;
}

.product-detail__lead--rich figure.image.image-style-align-left {
  float: left;
  margin: 0.35rem 1rem 1rem 0;
}

.product-detail__lead--rich figure.image.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

.product-detail__lead--rich figure.image.image-style-align-right {
  float: right;
  margin: 0.35rem 0 1rem 1rem;
}

.product-detail__lead--rich figure.image.image_resized {
  max-width: 100%;
}

.product-detail__lead--rich figure.image img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.product-detail__lead--rich figure.image figcaption,
.product-detail__lead--rich table caption {
  display: table-caption;
  caption-side: bottom;
  margin-top: 0.55rem;
  color: #526173;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.product-detail__lead--rich hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #dbe5f2;
}

.product-detail__lead--rich sup,
.product-detail__lead--rich sub {
  font-size: 0.75em;
}

.product-detail__description {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-detail__description-toggle {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail__description-preview {
  order: 1;
}

.product-detail__description-toggle[open] ~ .product-detail__description-preview {
  display: none;
}

.product-detail__description-content {
  order: 1;
}

.product-detail__description-summary {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  color: #0f2a52;
  font-weight: 700;
}

.product-detail__description-summary::-webkit-details-marker {
  display: none;
}

.product-detail__description-summary::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.product-detail__description-toggle[open] .product-detail__description-summary::before {
  transform: rotate(90deg);
}

.product-detail__description-summary-less {
  display: none;
}

.product-detail__description-toggle[open] .product-detail__description-summary-more {
  display: none;
}

.product-detail__description-toggle[open] .product-detail__description-summary-less {
  display: inline;
}

.product-detail__lead--collapsible {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-detail__variant-group {
  display: grid;
  gap: 12px;
}

.product-detail__variant-group h2 {
  margin: 0;
  font-size: 1.2rem;
}

.variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-selector--colors {
  gap: 12px;
}

.variant-selector-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

.variant-selector-panel__viewport {
  min-height: 0;
  max-height: 248px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bfd2eb transparent;
}

.variant-selector-panel--colors .variant-selector--colors {
  align-content: flex-start;
}

.variant-selector-panel--colors .variant-selector__option--color {
  max-width: 100%;
}

.variant-selector-panel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #17355f;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 35, 67, 0.08);
}

.variant-selector-panel__nav[hidden] {
  display: none;
}

.variant-selector-panel__nav--prev {
  padding: 0;
  width: 38px;
}

.variant-selector-panel__nav[disabled] {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.variant-selector__option {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid #d6e0eb;
  border-radius: 16px;
  background: #ffffff;
  color: #1a2433;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 35, 67, 0.06);
}

.variant-selector__option--color {
  flex-direction: row;
  align-items: center;
  min-width: 188px;
}

.variant-selector__option:hover {
  text-decoration: none;
  border-color: #bfd2eb;
  background: #f8fbff;
}

.variant-selector__option--selected {
  border-color: #0f2a52;
  background: #0f2a52;
  color: #ffffff;
  cursor: default;
}

.variant-selector__option--selected:hover {
  border-color: #0f2a52;
  background: #0f2a52;
  color: #ffffff;
}

.variant-selector__option--disabled,
.variant-selector__option--disabled:hover {
  border-color: #dbe3ec;
  background: #f4f7fb;
  color: #8a95a3;
  box-shadow: none;
  cursor: not-allowed;
  text-decoration: none;
}

.variant-selector__meta {
  color: #6b7787;
  font-size: 0.8rem;
  font-weight: 600;
}

.variant-selector__option--selected .variant-selector__meta {
  color: rgba(255, 255, 255, 0.78);
}

.variant-selector__option--selected:hover .variant-selector__meta {
  color: rgba(255, 255, 255, 0.78);
}

.variant-selector__option--disabled .variant-selector__meta {
  color: #8a95a3;
}

.variant-selector__option-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dbe5f2;
  background: #ffffff;
}

.variant-selector__option-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.variant-selector__option-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list__item {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e6ebf2;
}
.detail-list__item dt,
.detail-list__item dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-list__item dt {
  font-weight: 700;
  color: #526173;
}

.detail-list__item dd {
  margin: 0;
  color: #1a2433;
}

.detail-list__details {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.detail-list__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  color: #0f2a52;
  font-weight: 700;
}

.detail-list__summary::-webkit-details-marker {
  display: none;
}

.detail-list__summary::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.detail-list__details[open] .detail-list__summary::before {
  transform: rotate(90deg);
}

@media (max-width: 720px) {
  .product-share-dialog__body {
    align-items: stretch;
    flex-direction: column;
  }

  .product-share-dialog__qr {
    justify-items: center;
    width: 100%;
    text-align: center;
  }

  .product-share-dialog__copy-row {
    flex-wrap: nowrap;
  }

  .product-detail__lead--rich div[data-layout="two-column"] {
    grid-template-columns: 1fr;
  }

  .product-detail__lead--rich figure.image.image-style-align-left,
  .product-detail__lead--rich figure.image.image-style-align-right {
    float: none;
    margin: 1rem 0;
  }
}
