/**
 * Recently viewed page + PDP strip
 */
.recent-page { padding: 2rem 0 4rem; min-height: 50vh; }
.recent-hero { margin-bottom: 1.75rem; }
.recent-page h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.35rem; color: #1a1a2e; }
.recent-sub { color: #64748b; margin: 0; }
.recent-bridges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.recent-bridge { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.4rem 0.9rem; color: #1a1a2e; font-weight: 600; font-size: 0.8125rem; text-decoration: none; }
.recent-bridge:hover { border-color: #7C4A85; color: #7C4A85; }
.recent-bridge i { font-size: 0.75rem; color: #7C4A85; }
.recent-card-bridges { display: flex; gap: 0.35rem; }
.recent-bridge-btn { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #64748b; cursor: pointer; padding: 0; font-size: 0.75rem; }
.recent-bridge-btn:hover, .recent-bridge-btn.active, .recent-bridge-btn[aria-pressed="true"] { border-color: #7C4A85; color: #7C4A85; }
.recent-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.recent-count { color: #64748b; font-size: 0.95rem; }
.recent-clear { background: transparent; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.45rem 0.9rem; color: #64748b; cursor: pointer; font-size: 0.875rem; }
.recent-clear:hover { border-color: #7C4A85; color: #7C4A85; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.recent-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.recent-card:hover { border-color: #f0c4ce; box-shadow: 0 8px 24px rgba(124, 74, 133, 0.1); }
.recent-card-media { aspect-ratio: 1; background: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.recent-card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.recent-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.recent-card-title { font-size: 0.95rem; font-weight: 600; color: #1a1a2e; text-decoration: none; line-height: 1.35; }
.recent-card-title:hover { color: #7C4A85; }
.recent-card-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.recent-card-actions a, .recent-card-actions button { flex: 1; text-align: center; padding: 0.5rem 0.65rem; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; }
.recent-view { background: #7C4A85; color: #fff; }
.recent-view:hover { background: #a8485f; color: #fff; }
.recent-remove { background: #fff; color: #64748b; border: 1px solid #e2e8f0 !important; }
.recent-remove:hover { border-color: #7C4A85 !important; color: #7C4A85; }
.recent-empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #e2e8f0; border-radius: 12px; color: #64748b; }
.recent-empty i { font-size: 2.5rem; color: #f0c4ce; margin-bottom: 0.75rem; display: block; }
.recent-empty a { color: #7C4A85; font-weight: 600; }

/* PDP strip */
.pdp-recent-strip {
  margin: 2.5rem 0 1rem;
  width: 100%;
}
.pdp-recent-strip > .container {
  max-width: var(--container-max, 1600px);
  width: 92%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6, 1.5rem);
  padding-right: var(--space-6, 1.5rem);
}
.pdp-recent-strip-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pdp-recent-strip-header h2 { font-size: 1.25rem; margin: 0; color: #1a1a2e; }
.pdp-recent-strip-header a { font-size: 0.875rem; color: #7C4A85; font-weight: 600; text-decoration: none; }
.pdp-recent-strip-track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
.pdp-recent-chip { flex: 0 0 140px; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.pdp-recent-chip:hover { border-color: #A69BC1; }
.pdp-recent-chip-media { aspect-ratio: 1; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0.65rem; }
.pdp-recent-chip-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-recent-chip-name { display: block; padding: 0.55rem 0.65rem 0.75rem; font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: #1a1a2e; }

@media (max-width: 991.98px) {
  .pdp-recent-strip > .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
