.sg-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 891fr) minmax(270px, 309fr);
  gap: 39.5px;
  align-items: start;
}
.sg-pdp.sg-page {
  padding-top: 16px;
}
.sg-pdp__gallery {
  display: grid;
  grid-template-columns: minmax(0, 284fr) minmax(0, 587fr);
  gap: 20px;
}
.sg-pdp__thumbs {
  aspect-ratio: 284 / 734;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sg-pdp__thumb,
.sg-pdp__main {
  background: var(--sg-sand);
  overflow: hidden;
}
.sg-pdp__thumb { flex: 1 1 0; }
.sg-pdp__main { aspect-ratio: 587 / 734; }
.sg-pdp__thumb img,
.sg-pdp__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sg-pdp__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  padding-left: 19.5px;
}
.sg-pdp__info .product_title {
  margin: 0;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.sg-pdp__info hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--sg-line);
}
.sg-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-ink-40);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sg-pdp__price strong,
.sg-pdp__price .price {
  color: var(--sg-ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.01em;
}
.sg-pdp__price div > span:last-child {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -.01em;
}
.sg-size-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.sg-size-row > div:first-child { flex-grow: 1; }
.sg-size-row > div:nth-child(2),
.sg-size-row > div:nth-child(3) { width: 50px; }
.sg-size-row strong {
  color: var(--sg-ink);
  font-size: 14px;
  font-weight: 500;
}
.sg-cart-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quantity {
  width: 104px;
  height: 44px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--sg-line-strong);
  overflow: hidden;
  border: 1px solid var(--sg-line-strong);
}
.quantity input.qty {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  width: 36px;
  height: 44px;
  border: 0;
  padding: 0;
  text-align: center;
  color: var(--sg-ink);
  appearance: textfield;
  box-shadow: none;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { appearance: none; margin: 0; }
.sg-qty-btn {
  width: 34px;
  height: 44px;
  flex: 0 0 34px;
  border: 0;
  background: #fff;
  color: rgba(0, 0, 0, .45);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}
.sg-qty-btn:hover { color: var(--sg-ink); }
.sg-qty-btn[data-sg-qty="plus"] {
  order: 1;
  border-right: 1px solid rgba(0, 0, 0, .12);
}
.sg-qty-btn[data-sg-qty="minus"] {
  order: 3;
  border-left: 1px solid rgba(0, 0, 0, .12);
}
.sg-stock-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.sg-stock-line {
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 500;
}
.stock.out-of-stock,
.out-of-stock .sg-stock-line { color: var(--sg-ink-50); }
.sg-size-chart-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--sg-ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sg-buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}
.sg-spec {
  display: grid;
  gap: 0;
}
.sg-spec__row {
  min-height: 24px;
  border-bottom: 1px solid var(--sg-line);
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 24px;
  color: var(--sg-ink-80);
  font-size: 12px;
}
.sg-spec__row strong {
  text-align: right;
  color: var(--sg-ink);
  font-weight: 500;
}
.sg-pdp__desc p {
  color: var(--sg-ink-75);
  font-size: 14px;
  line-height: 1.5;
}
.sg-similar-section {
  margin-top: 100px;
}
.sg-similar-section > h2 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 38px;
  line-height: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.sg-similar-section > .sg-product-grid {
  margin-top: 16px;
}

.sg-modal[hidden] { display: none; }
.sg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.sg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.sg-modal__panel {
  position: relative;
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 32px;
}
.sg-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sg-modal__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.sg-modal__head button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}
.sg-size-chart { margin-top: 20px; }
.sg-size-chart div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sg-line);
  font-size: 14px;
}
.sg-modal p {
  margin: 18px 0 0;
  color: var(--sg-ink-75);
  font-size: 13px;
  line-height: 1.5;
}

.sg-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}
.sg-empty svg {
  width: 44px;
  height: 44px;
  stroke: rgba(18,42,73,.35);
  fill: none;
}
.sg-empty h2 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}
.sg-empty p {
  margin: 0;
  color: var(--sg-ink-75);
  font-size: 14px;
}
.sg-cart-layout,
.sg-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 60px;
  align-items: start;
  margin-top: 24px;
}
.sg-cart-page.sg-page,
.sg-checkout-page.sg-page {
  padding-top: 40px;
  width: min(var(--sg-container), calc(100% - (var(--sg-side) * 2)));
  margin-inline: auto;
}
.sg-cart-items {
  display: flex;
  flex-direction: column;
}
.sg-cart-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sg-line);
}
.sg-cart-item__image {
  width: 110px;
  height: 138px;
  flex: 0 0 110px;
  background: var(--sg-sand);
}
.sg-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sg-cart-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sg-cart-item__actions {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.sg-cart-item__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.sg-cart-item__meta {
  color: var(--sg-ink-75);
  font-size: 12px;
}
.sg-cart-item__price {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.sg-remove {
  width: max-content;
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: rgba(18, 42, 73, .6);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.sg-remove:hover { color: var(--sg-ink); }
.sg-cart-item .quantity {
  width: 98px;
  height: 40px;
}
.sg-cart-item .quantity input.qty {
  width: 26px;
  height: 40px;
  font-size: 13px;
}
.sg-cart-item .sg-qty-btn {
  width: 36px;
  height: 40px;
  flex-basis: 36px;
  border: 0;
}
.sg-cart-item .sg-qty-btn[data-sg-qty="minus"] {
  order: 1;
  border: 0;
}
.sg-cart-item .quantity input.qty { order: 2; }
.sg-cart-item .sg-qty-btn[data-sg-qty="plus"] {
  order: 3;
  border: 0;
}
.sg-cart-update {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sg-cart-summary {
  background: var(--sg-sand);
  border-radius: 0;
  padding: 28px;
}
.sg-cart-summary h2,
.sg-checkout-page h3 {
  margin: 0 0 18px;
  color: var(--sg-ink);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.sg-checkout-page h3 + #payment {
  margin-top: 14px;
}
.sg-checkout-page h3:not(:first-child) {
  margin-top: 28px;
  margin-bottom: 14px;
}
.sg-checkout-note {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: rgba(18, 42, 73, .6);
  font-size: 12px;
}
.sg-edit-cart {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  color: var(--sg-ink);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sg-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  color: var(--sg-ink-75);
  font-size: 13px;
}
.sg-cart-summary .sg-summary-line + .sg-summary-line { margin-top: 12px; }
.sg-summary-line--total {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--sg-line);
  color: var(--sg-ink);
  font-weight: 500;
}
.sg-summary-line--total span:last-child {
  font-size: 20px;
  font-weight: 600;
}
.sg-cart-summary .sg-btn { margin-top: 22px; min-height: 46px; }
.sg-cart-summary p {
  margin: 14px 0 0;
  text-align: center;
  color: var(--sg-ink-75);
  font-size: 12px;
}

.woocommerce-checkout .form-row {
  margin: 0 0 16px;
}
.sg-checkout-page .woocommerce-billing-fields > h3,
.sg-checkout-page .woocommerce-additional-fields > h3,
.sg-checkout-page .woocommerce-shipping-fields,
.sg-checkout-page .sg-hidden-country {
  display: none;
}
.sg-checkout-page .woocommerce-billing-fields__field-wrapper,
.sg-checkout-page .woocommerce-additional-fields__field-wrapper {
  margin-top: 16px;
}
.sg-checkout-page .woocommerce-additional-fields__field-wrapper {
  margin-top: 0;
}
.sg-checkout-page #order_comments {
  min-height: 82px;
}
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 8px);
  float: left;
}
.woocommerce-checkout .form-row-last { float: right; }
.woocommerce-checkout .form-row-wide { clear: both; }
.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  color: rgba(18, 42, 73, .8);
  font-size: 12px;
  font-weight: 500;
}
.woocommerce-checkout .form-row .optional {
  color: rgba(18, 42, 73, .5);
}
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 46px;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--sg-input);
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  color: var(--sg-ink);
  padding-left: 14px;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}
#payment {
  background: transparent;
}
#payment ul.payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
#payment li.wc_payment_method {
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sg-input);
  padding: 16px;
}
#payment li.wc_payment_method > input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 12px 0 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
  vertical-align: top;
}
#payment li.wc_payment_method > input[type="radio"]:checked {
  background: var(--sg-ink);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--sg-ink);
}
#payment li.wc_payment_method > label {
  margin: 0;
  color: var(--sg-ink);
  font-size: 14px;
  font-weight: 500;
}
#payment li.wc_payment_method:has(input:checked) {
  background: var(--sg-sand);
  box-shadow: inset 0 0 0 1.5px var(--sg-ink);
}
.payment_box {
  margin-top: 12px;
  color: var(--sg-ink-75);
  font-size: 12px;
  line-height: 1.5;
}
.sg-merchant-box {
  border-radius: 5px;
  background: var(--sg-sand);
  padding: 12px;
  color: var(--sg-ink);
  font-size: 13px;
}
.place-order {
  margin-top: 20px;
}
#place_order {
  width: 100%;
  min-height: 48px;
}
.woocommerce-terms-and-conditions-wrapper {
  color: var(--sg-ink-75);
  font-size: 12px;
}
.shop_table {
  width: 100%;
  border-collapse: collapse;
}
.sg-checkout-page .shop_table th,
.sg-checkout-page .shop_table td {
  padding: 5px 0;
  border: 0;
  text-align: left;
  color: var(--sg-ink-75);
  font-size: 12px;
}
.sg-checkout-page .shop_table td:last-child,
.sg-checkout-page .shop_table th:last-child {
  text-align: right;
  white-space: nowrap;
  color: var(--sg-ink);
  font-weight: 500;
}
.sg-checkout-page .shop_table tfoot tr:first-child th,
.sg-checkout-page .shop_table tfoot tr:first-child td {
  border-top: 1px solid var(--sg-line);
  padding-top: 12px;
}
.sg-checkout-page .shop_table tfoot tr:last-child th,
.sg-checkout-page .shop_table tfoot tr:last-child td {
  border-top: 0;
  color: var(--sg-ink);
  font-size: 20px;
  font-weight: 600;
}

.sg-confirmation {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.sg-checkmark {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--sg-ink);
  display: grid;
  place-items: center;
}
.sg-checkmark svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
}
.sg-confirmation h1 {
  margin: 24px 0 12px;
  font-size: 38px;
  line-height: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-top: 32px;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.woocommerce-MyAccount-navigation a {
  display: block;
  border-radius: 5px;
  padding: 12px 14px;
  background: var(--sg-sand);
  font-size: 13px;
}

@media (max-width: 1079px) {
  .sg-pdp__grid,
  .sg-cart-layout,
  .sg-checkout-grid {
    grid-template-columns: 1fr;
  }
  .sg-pdp__info {
    padding-left: 0;
  }
  .sg-cart-summary { width: 100%; }
}
@media (max-width: 719px) {
  .sg-pdp__gallery {
    grid-template-columns: 1fr;
  }
  .sg-pdp__main { order: -1; }
  .sg-pdp__thumbs {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sg-pdp__thumb { aspect-ratio: 284 / 357; }
  .sg-size-row {
    flex-wrap: wrap;
  }
  .sg-size-row > div:first-child {
    flex-basis: 100%;
  }
  .sg-buy-row { gap: 12px; }
  .sg-cart-item {
    grid-template-columns: 88px 1fr;
  }
  .sg-cart-item__image { width: 88px; height: 110px; }
  .sg-cart-item__price {
    grid-column: 2;
    text-align: left;
  }
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
  }
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}
