.category-card,
.product-card {
  display: grid;
  position: relative;
  overflow: hidden;
  border: 1px solid #e6ecf4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 67, 0.06);
}

.product-card:hover {
  transform: translateY(-1px);
}

.product-card {
  grid-template-rows: auto 1fr;
  min-width: 0;
  height: 100%;
}

.category-card__media,
 .product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef4fb, #f9fbfd);
  cursor: pointer;
 }

.category-card__media img,
 .product-card__media img,
 .product-gallery__frame img,
 .product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
 }

 /* Loading skeletons for product cards */
 .product-card--skeleton .sk-line,
 .product-card--skeleton .sk-block,
 .product-card--skeleton .sk-multiline {
  position: relative;
  overflow: hidden;
  background: #eef4fb;
 }
 .product-card--skeleton .sk-line { height: 1em; border-radius: 8px; }
 .product-card--skeleton .sk-line--lg { height: 1.6em; }
 .product-card--skeleton .sk-line--md { height: 1.2em; }
 .product-card--skeleton .sk-line--sm { height: 0.9em; }
 .product-card--skeleton .sk-block { height: 100%; }
 .product-card--skeleton .product-card__media { background: #eef4fb; }
 .product-card--skeleton .sk-multiline { height: 3.4em; border-radius: 10px; }
 .product-card--skeleton .sk-line::after,
 .product-card--skeleton .sk-block::after,
 .product-card--skeleton .sk-multiline::after,
 .product-card--skeleton .product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
  animation: shimmer 1.2s infinite;
 }
 @keyframes shimmer {
  100% { transform: translateX(100%); }
 }

.category-card__placeholder,
.product-card__placeholder,
.product-gallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: #526173;
  font-weight: 600;
  background: linear-gradient(135deg, #eef4fb, #f9fbfd);
}

img.is-catalog-image-unavailable {
  opacity: 0;
}

.category-card__body,
.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card__body {
  display: grid;
  gap: 10px;
  grid-template-rows:
    minmax(26px, auto)
    minmax(calc(1.35em * 2), auto)
    minmax(var(--product-card-color-row-size, 52px), auto)
    minmax(var(--product-card-size-row-size, 52px), auto)
    minmax(0, 1fr)
    auto;
  align-content: start;
  min-width: 0;
  height: 100%;
}

.category-card__body h3,
 .product-card__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
 }
.product-card__title-text,
.product-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.product-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.product-card__overlay:focus-visible {
  outline: 3px solid var(--storefront-action-focus, #2057d4);
  outline-offset: -4px;
}

.product-card__title,
.product-card__summary,
.product-card__meta,
.product-card__footer,
.product-card__price,
.product-card__category,
.product-card__link {
  min-width: 0;
}

 .product-card__eyebrow {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
 }
 .product-card__eyebrow--placeholder {
  visibility: hidden;
  min-height: 1em;
 }

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  grid-row: 1;
  min-height: 26px;
}

.product-card__title {
  grid-row: 2;
}

.product-card__audience,
.product-card__colors,
.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
}

.product-card__audience {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.product-card__audience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0f2a52;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-card__variant-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.product-card__variant-group--color {
  grid-row: 3;
}

.product-card__variant-group--size {
  grid-row: 4;
}

.product-card__variant-label {
  margin: 0;
  color: #6b7787;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__color-summary,
.product-card__variant-summary {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 28px;
  color: #17355f;
  font-size: 0.82rem;
  font-weight: 700;
}

 .product-card__summary {
  margin: 0;
  color: #526173;
  line-height: 1.65;
  min-height: 3.3em; /* ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
 }

.product-card__summary--placeholder {
  visibility: hidden;
}

.product-card__colors,
.product-card__sizes {
  gap: 6px;
  min-height: 28px;
  overflow: hidden;
}

.product-card__colors {
  flex-wrap: nowrap;
  align-items: center;
}

.product-card__sizes {
  flex-wrap: nowrap;
}

.product-card__category,
.product-card__color,
.product-card__size {
  position: relative;
  z-index: 2;
}

.product-card__color,
.product-card__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  text-decoration: none;
  border: 1px solid #d9e6f7;
  background: #ffffff;
  color: #17355f;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 35, 67, 0.04);
}

.product-card__color:hover,
.product-card__size:hover,
.product-card__category:hover {
  border-color: #bfd2eb;
  text-decoration: none;
}

.product-card__color--swatch {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(15, 35, 67, 0.18);
  background: var(--product-card-swatch, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(15, 35, 67, 0.12);
}

.product-card__color--text,
.product-card__size {
  padding: 0 8px;
  border-radius: 10px;
}

.product-card__color.is-selected {
  border-color: #2057d4;
}

.product-card__color--swatch.is-selected {
  box-shadow:
    0 0 0 2px #2057d4,
    inset 0 0 0 1px rgba(15, 35, 67, 0.14);
}

.product-card__color--text.is-selected,
.product-card__size.is-selected {
  border-color: #0f2a52;
  background: #0f2a52;
  color: #ffffff;
}

.product-card__size.is-disabled {
  border-color: #dbe3ec;
  background: #f4f7fb;
  color: #8a95a3;
  box-shadow: none;
}

.product-card__size--ellipsis {
  border-style: dashed;
  color: #6b7787;
  background: #f8fbff;
}

.product-card__size-label {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.product-card__size-fraction {
  margin-left: 1px;
  font-size: 0.58em;
  line-height: 1;
}

.product-card__meta,
.product-card__footer {
  display: grid;
  gap: 12px;
}

.product-card__meta {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  align-self: end;
  grid-row: 5;
}

.product-card__price,
.product-detail__price {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f2a52;
}

.product-card__price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.product-card__price-prefix {
  font-size: 0.64em;
  font-weight: 700;
  color: #6b7787;
}

.product-card__price-amount {
  line-height: 1;
}

.product-card__category,
.product-card__link {
  font-weight: 700;
}

.product-card__category {
  justify-self: end;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: calc(1.35em * 2);
}

.product-card__footer {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  grid-row: 6;
  margin-top: 0;
  min-height: 44px;
  padding-top: 14px;
  border-top: 1px solid #e6ecf4;
}

.product-card__footer .product-cart-control {
  width: 100%;
}

.product-card__footer .badge {
  width: fit-content;
  max-width: 100%;
}

.product-card__link {
  justify-self: end;
  text-align: right;
}

.page-header {
  display: grid;
  gap: 12px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.page-header p {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #6b7787;
  font-size: 0.95rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: #a6b1c0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #d9e6f7;
  color: #1a2433;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  text-decoration: none;
  border-color: #bfd2eb;
}
