/* ================= CUSTOM DESIGN - SELECTION PAGE ================= */

/* Container */
.cd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  min-height: 80vh;
}

/* Hero */
.cd-hero {
  position: relative;
  text-align: center;
  padding: 50px 20px 20px;
  overflow: visible;
  display: block;
}

.cd-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(132, 146, 195, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cd-hero-content {
  position: relative;
  z-index: 10;
  display: block;
  opacity: 1;
  visibility: visible;
}

.cd-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8492c3, #a0b0e8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(132, 146, 195, 0.3);
}

.cd-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0;
  letter-spacing: -0.2px;
  display: block;
  visibility: visible;
}

.cd-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #777;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section */
.cd-section-title {
  display: none;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin-bottom: 32px;
}

/* Grid */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding-top: 40px;
}

/* Premium Floating Card Setup */
.cd-card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(255, 255, 255, 0.4) inset;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.cd-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.2);
}

.cd-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  background: rgba(248, 248, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* 3D Premium Shadow on Image */
.cd-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.1));
}

.cd-card:hover .cd-card-image img {
  transform: scale(1.08) translateY(-5px);
}

.cd-card-overlay {
  display: none !important;
}

.cd-card-cta {
  display: none !important;
}

.cd-card-info {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 20px;
  background: rgba(255, 255, 255, 0.4);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
}

.cd-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cd-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #999;
}

.cd-card-price {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #6c5ce7;
  margin-top: 2px;
  background: linear-gradient(135deg, #8492c3, #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading */
.cd-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cd-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #8492c3;
  border-radius: 50%;
  animation: cdSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes cdSpin {
  to { transform: rotate(360deg); }
}

.cd-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 15px;
}

/* Mobile */
@media (max-width: 600px) {
  .cd-hero {
    padding: 30px 16px 12px;
  }
  
  .cd-hero-title {
    font-size: 22px;
  }

  .cd-hero-subtitle {
    font-size: 13px;
  }

  .cd-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cd-card-info {
    padding: 12px 14px;
  }

  .cd-card-title {
    font-size: 15px;
  }
}
