@import url("https://fonts.googleapis.com/css2?family=Anton&family=Bangers&family=Bebas+Neue&family=Black+Ops+One&family=Bungee&family=Monoton&family=Oswald:wght@600;700&family=Passion+One:wght@700&family=Permanent+Marker&family=Righteous&family=Russo+One&family=Teko:wght@600;700&display=swap");

.sg-product-customizer-page .product-main {
  padding-top: 24px;
}

.sg-product-customizer-page .product-main .row {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 560px);
  gap: 44px;
  align-items: start;
}

.sg-product-customizer-page .product-gallery,
.sg-product-customizer-page .product-info {
  width: auto;
  max-width: none;
  flex: none;
}

.sg-live-preview {
  position: sticky;
  top: 32px;
}

.sg-live-preview__stage {
  position: relative;
  min-height: 620px;
  border: 1px solid #e5e5e5;
  background:
    radial-gradient(120% 90% at 50% 4%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(120% 90% at 50% 96%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #f1f2f4 0%, #eceef1 100%);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sg-live-preview__stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background:
    radial-gradient(90% 70% at 50% 12%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.sg-live-preview__hint {
  margin: 14px 0 0;
  text-align: center;
  color: #5e6167;
  font-size: 13px;
  font-weight: 600;
}

.sg-case-mockup {
  --sg-case-primary: #cb2b2b;
  --sg-case-stripe: #1e3f95;
  position: relative;
  width: min(var(--sg-mockup-width, 485px), 100%);
  aspect-ratio: 9 / 16.7;
  border-radius: 24px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  z-index: 1;
}

.sg-case-mockup__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center var(--sg-base-position-y, 43%);
  transform: scale(var(--sg-base-scale, 1.58));
  transform-origin: center center;
  z-index: 1;
}

.sg-case-mockup__tint {
  position: absolute;
  inset: 0;
  background: var(--sg-case-primary);
  mix-blend-mode: multiply;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.sg-case-mockup__stripe {
  display: none;
}

.sg-case-mockup__name,
.sg-case-mockup__number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

.sg-case-mockup__name {
  top: var(--sg-name-top, 62.3%);
  font-size: clamp(22px, 3.5vw, var(--sg-name-max, 40px));
  letter-spacing: 0.04em;
  font-family: "Bebas Neue", sans-serif;
}

.sg-case-mockup__number {
  top: var(--sg-number-top, 69.4%);
  font-size: clamp(102px, 14vw, var(--sg-number-max, 180px));
  line-height: 0.95;
  font-family: "Bebas Neue", sans-serif;
}

.sg-product-customizer-page .summary .price {
  margin-bottom: 16px;
  color: #eef3f9;
}

.sg-product-customizer-page .summary,
.sg-product-customizer-page .summary p,
.sg-product-customizer-page .summary .product_title,
.sg-product-customizer-page .summary .posted_in,
.sg-product-customizer-page .summary .sku_wrapper,
.sg-product-customizer-page .summary .product_meta,
.sg-product-customizer-page .summary .reset_variations {
  color: #d6e0eb;
}

.sg-product-customizer-page .summary .variations th,
.sg-product-customizer-page .summary .variations label {
  color: #dfe8f2;
}

.sg-product-customizer-page .summary .variations select,
.sg-product-customizer-page .summary .variations .select2-selection,
.sg-product-customizer-page .summary .variations .value select {
  background: #121a24 !important;
  color: #eef3f9 !important;
  border: 1px solid #334253 !important;
}

.sg-product-customizer-page .summary .quantity input.qty {
  background: #121a24 !important;
  color: #eef3f9 !important;
  border: 1px solid #334253 !important;
}

.sg-customizer {
  margin: 8px 0 22px;
  padding: 18px;
  border: 1px solid #334253;
  border-radius: 14px;
  background: #141c26;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sg-customizer__title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.2;
  color: #f0f5fb;
}

.sg-customizer__group {
  margin-bottom: 4px;
}

.sg-customizer__label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d0dbe8;
}

.sg-color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sg-color-swatches__btn {
  border: 2px solid #d4d8dc;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.sg-color-swatches__btn span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--swatch-primary) 0%, var(--swatch-primary) 67%, var(--swatch-stripe) 67%, var(--swatch-stripe) 100%);
}

.sg-color-swatches__btn.is-active {
  border-color: #101216;
  transform: scale(1.08);
}

.sg-customizer__input,
.sg-customizer__select {
  width: 100%;
  height: 42px;
  border: 1px solid #334253;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  background: #0f1620;
  color: #ecf2f8;
}

.sg-customizer__input::placeholder {
  color: #8ea0b4;
}

.sg-font-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
}

.sg-font-grid__btn {
  width: 100%;
  min-height: 46px;
  border: 2px solid #334253 !important;
  border-radius: 12px;
  background: #0f1620 !important;
  color: #f0f5fb !important;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  margin: 0 !important;
  padding: 0 8px !important;
}

.sg-font-grid__btn.is-active {
  border-color: #d4b173 !important;
  background: #1b2531 !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(212, 177, 115, 0.2);
}

.sg-font-grid__btn:hover {
  background: #1a2533 !important;
  color: #ffffff !important;
}

.sg-product-customizer-page .single_add_to_cart_button {
  min-height: 46px;
  border-radius: 12px;
}

@media (max-width: 849px) {
  .sg-product-customizer-page .product-main .row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sg-live-preview {
    position: static;
  }

  .sg-live-preview__stage {
    min-height: 500px;
    padding: 14px;
  }

  .sg-case-mockup {
    width: min(320px, 100%);
  }

  .sg-customizer {
    padding: 16px;
  }

  .sg-font-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
