/** Shopify CDN: Minification failed

Line 585:0 Unexpected "}"
Line 907:14 Unexpected "{"
Line 907:23 Expected ":"
Line 907:30 Unexpected "{"

**/
/* ============================================
   SSG SHARED STYLES
   Used by: collection-family.liquid, 
   main-collection-product-grid.liquid
   ============================================ */
/* SSG: opt-in mobile left-column banner text. */
@media screen and (max-width: 749px) {
  .ssg-banner--mobile-left .banner__content {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .ssg-banner--mobile-left .banner__box {
    box-sizing: border-box;
    width: 43%;
    min-width: 0;
    max-width: 180px;
    padding: 16px 0;
    text-align: left;
    background: transparent;
  }

  .ssg-banner--mobile-left .banner__heading {
    font-size: 26px;
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ssg-banner--mobile-left .banner__text {
    width: 100%;
    max-width: 125px;
    min-width: 0;
    margin-top: 12px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ssg-banner--mobile-left .banner__text p {
    white-space: normal;
  }
}
/* === Modal Overlay === */
.ssg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.ssg-modal-overlay.is-open { display: flex; }

/* === MODAL SECTION === */
.ssg-modal {
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.ssg-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgb(var(--color-foreground));
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}
.ssg-modal__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding-right: 2rem;
}

.ssg-modal__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  padding-right: 0;
}

.ssg-modal__full-details {
  font-size: 1.1rem;
  color: rgba(var(--color-foreground), 0.85);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.ssg-modal__full-details:hover {
  color: rgb(var(--color-foreground));
  text-decoration: underline;
}


.ssg-modal__size-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.1);
  margin-bottom: 6px;
  margin-top: 1rem;
}


.ssg-modal__size-header-thumb {
  width: 48px;
  flex-shrink: 0;
}

.ssg-modal__size-header-col {
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--color-foreground), 0.5);
}

.ssg-modal__size-header-col:nth-child(2) {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ssg-modal__size-header-col:nth-child(3) {
  width: 94px;
  flex-shrink: 0;
  text-align: center;
  transform: translateX(-12px);
}

.ssg-modal__size-header-col:nth-child(4) {
  width: 70px;
  flex-shrink: 0;
  text-align: center;
  transform: translateX(-12px);
}

.ssg-modal__size-header-col:nth-child(5) {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-12px);
}


.ssg-modal__color-name {
  font-size: 1.0rem;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0;
  margin-top: 0.4rem;
}


/* === Modal Colors === */
.ssg-modal__colors { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  margin-bottom: 0.6rem; 
}
.ssg-modal__colors-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ssg-modal__color-btn {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 3px solid transparent !important;
  box-shadow: 0 0 0 1px rgba(var(--color-foreground), 0.3) !important;
  cursor: pointer !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ssg-modal__color-btn.is-active {
  border-color: rgb(var(--color-foreground)) !important;
  box-shadow: 0 0 0 2px rgb(var(--color-foreground)) !important;
}

/* === Modal Sizes === */
.ssg-modal__sizes { 
  display: none; 
  flex-direction: column; 
  gap: 2px; 
  margin-bottom: 0.8rem; 
}

.ssg-modal__sizes.is-active { 
  display: flex !important; 
  flex-direction: column !important; 
  visibility: visible !important; 
}

.ssg-modal__size-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.ssg-modal__size-row:last-child {
  border-bottom: none;
}

.ssg-modal__size-label {
  font-size: 1.3rem;
  font-weight: 500;
}


.ssg-modal__size-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 180px;
  gap: 2px;
}


.ssg-modal__size-meta {
  font-size: 1.0rem;
  color: rgba(var(--color-foreground), 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* === Modal Qty + Add === */

.ssg-modal__stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(var(--color-foreground), 0.3);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}


.ssg-modal__stepper-btn {
  background: none;
  border: none;
  width: 28px;
  height: 32px;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgb(var(--color-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ssg-modal__stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ssg-modal__qty {
  width: 36px;
  border: none;
  text-align: center;
  font-size: 1.3rem;
  padding: 4px 0;
  background: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  -moz-appearance: textfield;
}

.ssg-modal__qty::-webkit-outer-spin-button,
.ssg-modal__qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.ssg-modal__qty:disabled { opacity: 0.35; cursor: not-allowed; }
.ssg-modal__actions {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 5px;
}

.ssg-modal__add {
  flex: 0 0 28%;
  padding: 6px 10px;
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  text-align: center;
}

.ssg-modal__add:hover { opacity: 0.85; }

.ssg-modal__actions-spacer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssg-modal__view-cart {
  flex: 0 0 20%;
  padding: 6px 10px;
  background: transparent;
  color: rgb(var(--color-foreground));
  border: 1px solid rgba(var(--color-foreground), 0.3);
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssg-modal__view-cart:hover { opacity: 0.8; }


.ssg-modal__feedback {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.8rem;
  min-height: 1.6rem;
  color: rgb(var(--color-foreground));
}
.ssg-modal__size-price {
  font-size: 1.1rem;
  font-weight: 400;
  width: 70px;
  flex-shrink: 0;
  text-align: center;
}

.ssg-modal__size-total {
  font-size: 1.1rem;
  font-weight: 400;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
  color: rgb(var(--color-foreground));
}

.ssg-modal__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding-right: 2rem;
}

.ssg-modal__title {
  font-size: 1.6rem;
  font-weight: 600;
}

.ssg-modal__full-details {
  font-size: 1.1rem;
  color: rgba(var(--color-foreground), 0.6);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
}

.ssg-modal__full-details:hover {
  color: rgb(var(--color-foreground));
  text-decoration: underline;
}

.ssg-modal__order-total {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(var(--color-foreground), 0.15);
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 600;
}

.ssg-modal__order-total-label {
  flex: 1;
}

.ssg-modal__order-items {
  width: 94px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  transform: translateX(-82px);
}

.ssg-modal__order-items-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(var(--color-foreground), 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.ssg-modal__order-total-value {
  font-size: 1.4rem;
  font-weight: 600;
  width: 60px;
  text-align: center;
  transform: translateX(-12px);
}

.ssg-modal__subtotal-note {
  font-size: 0.85rem;
  color: rgba(var(--color-foreground), 0.5);
  text-align: center;
  line-height: 1.4;
  margin: 0;
  padding: 0 4px;
}

.ssg-modal__subtotal-note a {
  color: rgba(var(--color-foreground), 0.5);
  text-decoration: underline;
}

.ssg-modal__subtotal-note a:hover {
  color: rgb(var(--color-foreground));
}
@media (max-width: 480px) {
  .ssg-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(var(--app-height, 100%) * 0.92);
    padding: 1.2rem 1rem;
    border-radius: 12px 12px 0 0;
  }

.free-shipping-bar .shipping-bar-content br {
    display: block !important;
  }


@media (max-width: 480px) {
  .ssg-modal__add {
    flex: 0 0 auto;
    padding: 8px 20px;
    font-size: 1.0rem;
  }

  .ssg-modal__view-cart {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 1.0rem;
  }

  .ssg-modal__actions {
    justify-content: space-between;
    align-items: center;
  }

  .ssg-modal__subtotal-note {
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
    padding: 0 8px;
  }
}


  /* Reset desktop transform hacks */
  .ssg-modal__size-header-col:nth-child(3),
  .ssg-modal__size-header-col:nth-child(4),
  .ssg-modal__size-header-col:nth-child(5),
  .ssg-modal__order-items,
  .ssg-modal__order-total-value {
    transform: none;
  }

  /* Lock column widths to match header exactly */
  .ssg-modal__size-header-col:nth-child(3) { width: 80px; text-align: center; }
  .ssg-modal__size-header-col:nth-child(4) { width: 52px; text-align: center; }
  .ssg-modal__size-header-col:nth-child(5) { width: 52px; text-align: center; }

  .ssg-modal__stepper          { width: 80px; justify-content: center; }
  .ssg-modal__size-price       { width: 52px; text-align: center; }
  .ssg-modal__size-total       { width: 52px; text-align: center; }

  /* Order total row alignment */
  .ssg-modal__order-items      { width: 80px; transform: none; text-align: center; }
  .ssg-modal__order-total-value { width: 52px; transform: none; text-align: center; }
}


  
  .ssg-modal-overlay {
    align-items: flex-end;
  }

  .ssg-modal__title {
    font-size: 1.3rem;
  }

  .ssg-modal__size-row {
    padding: 4px 4px;
    gap: 4px;
  }

  .ssg-modal__size-label {
    font-size: 1.1rem;
  }

  .ssg-modal__size-price,
  .ssg-modal__size-total {
    width: 50px;
    font-size: 1.0rem;
  }

  .ssg-modal__size-header-col:nth-child(4),
  .ssg-modal__size-header-col:nth-child(5) {
    width: 50px;
  }

  .ssg-modal__order-total {
    font-size: 1.2rem;
  }

  .ssg-modal__actions {
    flex-wrap: wrap;
  }

  .ssg-modal__add {
    flex: 1;
  }

  .ssg-modal__view-cart {
    flex: 0 0 auto;
  }
}

/* === BADGE SECTION === */

.family-card__b2b-badge {
  display: inline-block;
  background: rgb(48, 68, 156);
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  padding: 0.5rem 1.3rem 0.6rem;
  border-radius: var(--badge-corner-radius);
}


/* === Swatch Overflow === */
.swatch-overflow-desktop { display: inline-flex; }
.swatch-overflow-mobile { display: none; }
@media (max-width: 749px) {
  .swatch-hide-mobile { display: none !important; }
  .swatch-overflow-desktop { display: none !important; }
  .swatch-overflow-mobile { display: inline-flex !important; }
}

.family-swatch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.family-swatch__image {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.family-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  width: 52px;
}

.family-swatch__color {
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 0.2rem solid transparent;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}

.family-swatch.is-selected .family-swatch__color {
  border-color: rgb(var(--color-foreground));
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}

.family-swatch__label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.family-grid-feedback {
  font-size: 1.2rem;
  min-height: 1.6rem;
  margin: 0;
  color: green;
}
.family-grid-feedback--warning {
  color: black;
}

/* ── for size buttons smaller ── */

.product-form__input--pill .swatch-input__btn,
.product-form__input--pill input[type="radio"] + label {
  min-width: 36px;
  height: 32px;
  font-size: 12px;
  padding: 0 8px;
}
.product-form__input--pill .swatch-input__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}


/* ── quick-add-bulk normalization ── */

quick-add-bulk .quick-add__submit ~ .quick-add__submit {
  display: none !important;

}
/* Lift Quick Select button above card anchor overlay */
.collection-family__grid .quick-add__submit {
  position: relative;
  z-index: 2;
}
/* Match bulk wrapper height to standard .quick-add wrapper */

quick-add-bulk {
  display: flex !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 0 10px 0 !important;
  height: auto !important;
  cursor: pointer;
}

quick-add-bulk::after {
  display: none !important;
}
cart-drawer-items:not(.is-empty) {
  min-height: 200px;
  overflow: auto;
}
.card--media > .card__inner > .card__content {
  display: none;
}

.card__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card__media .media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card__media .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}
.card__inner.ratio .media {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .card__inner {
    position: relative;
    overflow: hidden;
  }

  .card--standard .card__inner {
    padding-bottom: 100%; /* 1:1 aspect ratio — adjust to 120% or 130% if your images are portrait */
    height: 0;
  }

  .card--standard .card__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  /* Keep badge above image */
  .card__badge {
    position: absolute;
    z-index: 2;
  }
}


/* === Glove Style Label === */
.family-card__glove-style {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  line-height: 1.3;
}
/* Image containment — prevents overflow in product grids */
.card__inner.ratio {
  overflow: hidden;
}

.card__inner.ratio .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* For Featured Product Size options */
.family-variant-grid {
  margin-top: 1.6rem;
}

.family-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  table-layout: fixed;
}

.family-grid-table th:nth-child(1),
.family-grid-table td:nth-child(1) { width: 8%; }

.family-grid-table th:nth-child(2),
.family-grid-table td:nth-child(2) { width: 30%; }

.family-grid-table th:nth-child(3),
.family-grid-table td:nth-child(3) { width: 25%; text-align: center; padding-left: 0; }

.family-grid-table th:nth-child(4),
.family-grid-table td:nth-child(4) { width: 20%; text-align: right; }

.family-grid-table th {
  padding: 0.4rem 0.8rem;
  font-size: 1.0rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.15);
}

.family-grid-table td {
  padding: 0.4rem 0.8rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.06);
  vertical-align: middle;
}

.family-grid-qty {
  width: 4.5rem;
  padding: 0.2rem 0.4rem;
  font-size: 1.2rem;
}

.family-glove-category {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.family-grid-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  padding: 1.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.15);
  margin-top: 0.8rem;
}

.family-grid-footer__totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.family-grid-total {
  text-align: right;
  min-width: 6rem;
  padding-right: 0.8rem;
}


.family-grid-atc {
  white-space: nowrap;
  padding: 0.6rem 1.6rem;
  font-size: 1.2rem;
  line-height: 1;
  height: auto;
  min-height: unset;
  width: 100%;
}

.family-grid-total-label {
  margin-right: auto;
}


.family-grid-sku {
  font-size: 1.1rem;
  color: rgba(var(--color-foreground), 0.6);
  white-space: nowrap;
}

.family-grid-stock {
  font-size: 1.1rem;
  color: rgba(var(--color-foreground), 0.6);
}
.product__view-details--family {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

#ProductInfo-{{ section.id }} {
  position: relative;
}
.family-gallery {
  position: relative;
  overflow: hidden;
}

.family-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}

.family-gallery__slide {
  display: none;
  width: 100%;
  height: 100%;
}

.family-gallery__slide.is-active {
  display: block;
}

.family-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.family-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.15);
  border-radius: 50%;
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.family-gallery__arrow--prev {
  left: 0.8rem;
  rotate: 90deg;
}

.family-gallery__arrow--next {
  right: 0.8rem;
  rotate: -90deg;
}

.family-gallery__counter {
  position: absolute;
  bottom: 0.8rem;
  right: 1.2rem;
  font-size: 1.1rem;
  color: rgba(var(--color-foreground), 0.5);
  background: rgb(var(--color-background));
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
}
/* === SSG QUICK-PICK COLUMN ADJUSTMENT: START === Oct 15 */
/* Shared header/row columns; no changes to cart or availability. */

.ssg-modal-overlay .ssg-modal {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 680px;
  padding: 24px;
}

.ssg-modal-overlay {
  align-items: center;
}

.ssg-modal {
  --ssg-modal-columns: 48px minmax(0, 1fr) 100px 72px 72px;
  --ssg-modal-column-gap: 12px;
}

.ssg-modal .ssg-modal__size-header,
.ssg-modal .ssg-modal__size-row {
  display: grid;
  grid-template-columns: var(--ssg-modal-columns);
  column-gap: var(--ssg-modal-column-gap);
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

.ssg-modal .ssg-modal__size-row {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ssg-modal .ssg-modal__size-header-thumb {
  display: none;
}

.ssg-modal .ssg-modal__size-header-col:nth-child(2) {
  grid-column: 1 / 3;
  text-align: left;
}

.ssg-modal .ssg-modal__size-header-col:nth-child(n + 3) {
  width: auto;
  min-width: 0;
  transform: none;
  text-align: center;
}

.ssg-modal .ssg-modal__size-info {
  min-width: 0;
  max-width: none;
  gap: 4px;
}

.ssg-modal .ssg-modal__size-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ssg-modal .ssg-modal__size-label {
  font-size: 1.3rem;
  line-height: 1.4;
}

.ssg-modal .ssg-modal__size-meta {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.ssg-modal .ssg-modal__stepper {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.ssg-modal .ssg-modal__stepper-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
}

.ssg-modal .ssg-modal__qty {
  box-sizing: border-box;
  flex: 0 0 34px;
  width: 34px;
  min-width: 0;
  height: 40px;
}

.ssg-modal .ssg-modal__size-price,
.ssg-modal .ssg-modal__size-total {
  width: auto;
  min-width: 0;
  font-size: 1.2rem;
  text-align: center;
  white-space: nowrap;
}

.ssg-modal .ssg-modal__order-total {
  display: grid;
  grid-template-columns: var(--ssg-modal-columns);
  column-gap: var(--ssg-modal-column-gap);
  padding: 12px 0;
}

.ssg-modal .ssg-modal__order-total-label {
  grid-column: 1 / 3;
}

.ssg-modal .ssg-modal__order-items {
  grid-column: 3;
  width: auto;
  transform: none;
}

.ssg-modal .ssg-modal__order-total-value {
  grid-column: 5;
  width: auto;
  transform: none;
  text-align: center;
}

@media (max-width: 600px) {
  .ssg-modal-overlay {
    align-items: flex-end;
  }

  .ssg-modal-overlay .ssg-modal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 16px 10px;
    border-radius: 12px 12px 0 0;
    --ssg-modal-columns: 36px minmax(0, 1fr) 88px 48px 48px;
    --ssg-modal-column-gap: 6px;
  }

  .ssg-modal .ssg-modal__size-thumb {
    width: 36px;
    height: 44px;
  }

  .ssg-modal .ssg-modal__size-header-col {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
  }

  .ssg-modal .ssg-modal__size-label {
    font-size: 1.1rem;
  }

  .ssg-modal .ssg-modal__size-meta {
    font-size: 1rem;
  }

  .ssg-modal .ssg-modal__size-price,
  .ssg-modal .ssg-modal__size-total {
    font-size: 1rem;
  }

  .ssg-modal .ssg-modal__title-row {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}

/* === SSG QUICK-PICK COLUMN ADJUSTMENT: END === */
/* SSG: centre family-card image containers on mobile. */
@media screen and (max-width: 749px) {
  .collection-family__grid .card .card__inner .card__media {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .collection-family__grid .card .card__media .media {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .collection-family__grid .card .card__media .media > a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .collection-family__grid .card .card__media .media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center !important;
  }
}
/* SSG: reserve one square image area on mobile family cards. */
@media screen and (max-width: 749px) {
  .collection-family__grid .card .card__inner.ratio {
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
  }

  .collection-family__grid .card .card__inner.ratio::before {
    content: none;
    display: none;
  }
}
/* SSG: compact mobile family cards with room for overlay badges. */
@media screen and (max-width: 749px) {
  /* Let each card finish at its own content height. */
  .collection-family__grid {
    align-items: start;
  }

  .collection-family__grid .card-wrapper {
    height: auto;
    align-self: start;
  }

  .collection-family__grid .card {
    height: auto;
    flex: 0 0 auto;
  }

  .collection-family__grid .card .card__content {
    flex: 0 0 auto !important;
    padding: 0.8rem 1rem 1rem;
  }

  .collection-family__grid .card .card__information {
    height: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  .collection-family__grid .card .card-information {
    flex: 0 0 auto;
  }

  .collection-family__grid .family-card__swatches {
    height: auto;
  }

  /* Move the image down within the existing square.
     The overlay badges remain at the top. */
  .collection-family__grid .card .card__media .media > a {
    inset: 28px 0 0;
    width: 100%;
    height: calc(100% - 28px);
  }

  .collection-family__grid .quick-add {
    margin-top: 0.8rem;
    padding-bottom: 0;
  }
}
/* SSG: centre related-product images on mobile only. */
@media screen and (max-width: 749px) {
  .related-products .card .card__inner .card__media {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .related-products .card .card__media .media {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .related-products .card .card__media .media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center !important;
  }
}