/* --- Product Stories Selector --- */
.product-stories-selector {
  padding: var(--space-2xl) 0 var(--space-4xl);
  background: var(--color-bg);
}

.product-stories-selector .container {
  max-width: var(--max-width);
}

#productStoriesSubtitle span {
  display: block;
}

#productStoriesSubtitle span + span {
  margin-top: 0.35rem;
}

.product-stories-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.product-story-product-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--color-bg-alt);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.product-story-product-card[href]:hover {
  color: inherit;
  background: var(--color-white);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.product-story-product-card[href]:active,
.product-story-product-card[href]:focus-visible {
  color: inherit;
  background: var(--color-white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.product-story-product-card[href]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.product-story-product-card.is-disabled {
  cursor: default;
}

.product-story-product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f1ec;
  border-bottom: 1px solid var(--color-border-light);
}

.product-story-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-story-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: var(--space-lg);
  color: rgba(17, 17, 17, 0.52);
  text-align: center;
}

.product-story-product-placeholder-mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  position: relative;
}

.product-story-product-placeholder-mark::before,
.product-story-product-placeholder-mark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.product-story-product-placeholder-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.product-story-product-placeholder span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-story-product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.product-story-product-copy h3 {
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  overflow-wrap: anywhere;
}

.product-story-product-copy p {
  font-size: var(--font-size-body);
  line-height: 1.5;
  color: var(--color-text-secondary);
  overflow-wrap: anywhere;
}

.product-story-product-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.product-story-product-card[href]:hover .product-story-product-action {
  color: var(--color-link-hover);
}

.product-story-product-card.is-disabled .product-story-product-action {
  color: #8d8a82;
}

.product-story-product-card.is-coming-soon .product-story-product-media {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.46) 50% 75%, transparent 75%),
    #f3f1ec;
  background-size: 1.4rem 1.4rem;
}

.product-stories-coming-soon-panel,
.product-stories-loading {
  grid-column: 1 / -1;
  min-height: clamp(17rem, 36vh, 24rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  background: var(--color-bg-alt);
  text-align: center;
}

.product-stories-coming-soon-panel h3,
.product-stories-loading p {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--color-text);
}

.product-stories-loading p {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.product-story-detail-placeholder {
  width: min(100%, 720px);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: var(--space-lg) auto var(--space-2xl);
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: rgba(17, 17, 17, 0.52);
  text-align: center;
  border: 1px solid var(--color-border-light);
}

.product-story-detail-placeholder span:last-child {
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .product-stories-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

@media (max-width: 640px) {
  .product-stories-selector {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .product-stories-product-grid {
    grid-template-columns: 1fr;
  }

  .product-story-product-copy {
    padding: var(--space-md);
  }
}
