.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.cf-product-status {
  margin: 0 0 18px;
  color: var(--ash);
  font-size: 13px;
  font-weight: 800;
}

.product-card.is-loading {
  min-height: 320px;
  padding: 18px;
  display: grid;
  place-items: center;
  color: var(--ash);
  font-weight: 900;
}

.product-actions .button,
.product-actions .quick-button {
  text-align: center;
}

.product-actions .quick-button {
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--rice);
  font-weight: 900;
}

.product-actions .quick-button[aria-label] {
  font-size: 18px;
}

.sgdc-product-main-section {
  padding-top: clamp(36px, 5vw, 72px);
}

.sgdc-product-breadcrumb {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ash);
  font-size: 13px;
  font-weight: 800;
}

.sgdc-product-breadcrumb a {
  color: var(--jade);
}

.sgdc-product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.sgdc-product-detail .woocommerce-product-gallery {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.sgdc-gallery-stage {
  position: relative;
  min-height: 440px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf0;
}

.sgdc-gallery-stage img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  padding: 18px;
}

.sgdc-gallery-main-button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.sgdc-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(23, 20, 19, 0.14);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.88);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.sgdc-gallery-nav.prev {
  left: 12px;
}

.sgdc-gallery-nav.next {
  right: 12px;
}

.sgdc-gallery-nav:hover,
.sgdc-gallery-nav:focus-visible {
  background: var(--ink);
  color: var(--rice);
  outline: none;
}

.sgdc-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}

.sgdc-gallery-thumbs button {
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fffaf0;
  cursor: pointer;
}

.sgdc-gallery-thumbs button.active {
  border-color: var(--vermilion);
}

.sgdc-gallery-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sgdc-image-lightbox {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rice);
  overflow: visible;
}

.sgdc-image-lightbox::backdrop {
  background: rgba(23, 20, 19, 0.82);
}

.sgdc-image-lightbox img {
  width: min(800px, calc(100vw - 48px));
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: #fffaf0;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
}

.sgdc-lightbox-close {
  position: absolute;
  right: -16px;
  top: -16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.4);
  border-radius: 999px;
  background: var(--ink);
  color: var(--rice);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.sgdc-lightbox-close:hover,
.sgdc-lightbox-close:focus-visible {
  background: var(--vermilion);
  outline: none;
}

.sgdc-product-detail .summary {
  min-width: 0;
}

.sgdc-product-detail .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.sgdc-product-detail .product_meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(29, 92, 81, 0.1);
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.sgdc-product-detail .cart {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sgdc-product-detail .quantity {
  width: 96px;
}

.sgdc-product-detail .purchase-note,
.sgdc-cart-bridge .purchase-note {
  margin: 12px 0 0;
  color: var(--ash);
  font-size: 12px;
  line-height: 1.7;
}

.sgdc-description {
  max-width: 980px;
  margin: 0 auto;
}

.sgdc-description p {
  margin-bottom: 12px;
}

.sgdc-related-products {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 18px;
}

.sgdc-related-products .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.sgdc-cart-bridge {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--vermilion);
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 0 12px 28px rgba(23, 20, 19, 0.08);
}

.sgdc-cart-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgdc-checkout-gate {
  max-width: 760px;
  margin: 0 auto;
}

.sgdc-checkout-gate .sgdc-age-confirm-wrap {
  margin: 0 0 18px;
}

.sgdc-checkout-gate .button[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

.sgdc-info-source {
  color: var(--ash);
  font-size: 12px;
  font-weight: 800;
}

.sgdc-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.site-footer a.active {
  color: var(--vermilion);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 68;
  width: 56px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.back-to-top img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 18px rgba(23, 20, 19, 0.22));
  outline: none;
}

@media (max-width: 760px) {
  .sgdc-product-detail {
    grid-template-columns: 1fr;
  }

  .sgdc-gallery-stage {
    min-height: 300px;
  }

  .sgdc-gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sgdc-gallery-thumbs button {
    min-width: 76px;
  }

  .sgdc-lightbox-close {
    right: 2px;
    top: -46px;
  }

  .sgdc-product-detail .cart {
    display: grid;
  }

  .sgdc-product-detail .quantity,
  .sgdc-product-detail .cart .button {
    width: 100%;
  }

  .sgdc-cart-actions {
    display: grid;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
    width: 50px;
    height: 64px;
  }
}
