/* Similar Designs Section */
.similar-designs {
  background: var(--bg-secondary);
  padding: 5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  outline: none;
}

.similar-designs-container {
  /* max-width: 1400px; */
  margin: 0 auto;
}

.similar-designs-title {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.similar-designs-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.designs-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  position: relative;
  justify-content: flex-start;
  transition: justify-content 0.3s ease;
}

.designs-carousel.centered {
  justify-content: center;
  cursor: default;
}

.designs-carousel:active {
  cursor: grabbing;
}

.designs-carousel::-webkit-scrollbar {
  display: none;
}

.designs-carousel-wrapper {
  position: relative;
}

.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease, opacity 0.3s ease;
  z-index: 20;
  opacity: 1;
}

.scroll-indicator:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.scroll-indicator:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-indicator.left {
  left: 1rem;
}

.scroll-indicator.right {
  right: 1rem;
}

@media (max-width: 768px) {
  .scroll-indicator {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .scroll-indicator.left {
    left: 0.5rem;
  }

  .scroll-indicator.right {
    right: 0.5rem;
  }
}

.design-preview {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.design-preview:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
}

.design-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  margin-bottom: 1rem;
}

.design-card-link .place-card-sample {
  width: 100%;
  aspect-ratio: 3.5 / 2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  overflow: hidden;
}

.design-preview:hover .design-card-link .place-card-sample {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.design-card {
  width: 100%;
  aspect-ratio: 3.5 / 2;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  overflow: hidden;
}

.design-preview:hover .design-card {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.design-card-content {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.design-name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.design-table {
  font-size: 0.875rem;
  opacity: 0.7;
  color: var(--text-primary);
}

.design-info {
  text-align: center;
}

.design-info h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.design-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.design-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Background Styles for Design Cards */
.bg-classic {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.bg-elegant {
  background: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

.bg-sage {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.bg-blush {
  background: linear-gradient(135deg, #fff0f3 0%, #ffe3e7 100%);
}

.bg-navy {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.bg-lavender {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.bg-gold {
  background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
}

.bg-mint {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.bg-peach {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.bg-forest {
  background: linear-gradient(135deg, #2e5339 0%, #3d6e47 100%);
}

.bg-dusty-rose {
  background: linear-gradient(135deg, #f4e4e6 0%, #e8d0d3 100%);
}

.bg-terracotta {
  background: linear-gradient(135deg, #f4e8e1 0%, #e8c5b5 100%);
}

/* Pattern overlays */
.pattern-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
}

.pattern-stripes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.1) 10px,
      rgba(255, 255, 255, 0.1) 20px);
  pointer-events: none;
}

.pattern-floral::before {
  content: '✿';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
  opacity: 0.2;
}

.pattern-floral::after {
  content: '✿';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0.2;
}

.pattern-corner::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.pattern-corner::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid rgba(255, 255, 255, 0.4);
}

/* Text color adjustments */
.text-dark {
  color: #1a1614;
}

.text-light {
  color: #ffffff;
}

.text-gold {
  color: #d4a574;
}

/* No similar cards message */
.no-similar-cards {
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
}
