/* Kuhu Experience Cards — scoped to the shortcode wrapper */
.kuhu-experience-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  max-width: 1240px;
  margin: 20px auto;
  padding: 30px 16px;
  background: #090b0e;
  color: #f0f6fc;
  border-radius: 24px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.kuhu-experience-wrapper,
.kuhu-experience-wrapper * {
  box-sizing: border-box;
}

.kuhu-main-title {
  display: block !important;
  width: 100% !important;
  text-align: center;
  font-size: clamp(1.6rem, 5.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 35px 0;
  background: linear-gradient(135deg, #ffffff 30%, #ff52a1 70%, #00e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(255, 82, 161, 0.25));
}

.kuhu-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px 0;
}

.kuhu-section-title {
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mother-theme-title { color: #ff52a1; }
.baby-theme-title { color: #00e5ff; }
.toys-theme-title { color: #7dff6a; }
.universal-theme-title { color: #c78bff; }

.kuhu-header-line {
  flex: 1;
  height: 1px;
  opacity: 0.6;
}

.mother-theme-line { background: linear-gradient(90deg, rgba(255, 82, 161, 0.8), transparent); }
.baby-theme-line { background: linear-gradient(90deg, rgba(0, 229, 255, 0.8), transparent); }
.toys-theme-line { background: linear-gradient(90deg, rgba(48, 255, 142, 0.85), transparent); }
.universal-theme-line { background: linear-gradient(90deg, rgba(199, 139, 255, 0.85), transparent); }

.kuhu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.kuhu-card {
  position: relative;
  height: 390px;
  perspective: 1200px;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.kuhu-card:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 4px;
  border-radius: 20px;
}

.kuhu-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 20px;
}

.kuhu-card.is-flipped .kuhu-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.kuhu-card-front,
.kuhu-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.kuhu-card-front {
  background: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mother-theme .kuhu-card-front { box-shadow: 0 10px 30px -10px rgba(255, 82, 161, 0.25); }
.baby-theme .kuhu-card-front { box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.25); }
.toys-theme .kuhu-card-front { box-shadow: 0 10px 30px -10px rgba(35, 255, 117, 0.3); }
.universal-theme .kuhu-card-front { box-shadow: 0 10px 30px -10px rgba(199, 139, 255, 0.25); }

.kuhu-card-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.8) contrast(1.05);
}

.kuhu-card:hover .kuhu-card-front img {
  transform: scale(1.06);
}

.kuhu-front-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 11, 14, 0.95) 0%, rgba(9, 11, 14, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.kuhu-cat-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.kuhu-action-hint {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.mother-theme .kuhu-action-hint { color: #ff85c0; }
.baby-theme .kuhu-action-hint { color: #66efff; }
.toys-theme .kuhu-action-hint { color: #b4ffbb; }
.universal-theme .kuhu-action-hint { color: #dbb8ff; }

.kuhu-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: rgba(18, 22, 31, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mother-theme .kuhu-card-back { border: 1px solid rgba(255, 82, 161, 0.4); box-shadow: 0 12px 35px rgba(255, 82, 161, 0.2); }
.baby-theme .kuhu-card-back { border: 1px solid rgba(0, 229, 255, 0.4); box-shadow: 0 12px 35px rgba(0, 229, 255, 0.2); }
.toys-theme .kuhu-card-back { border: 1px solid rgba(73, 255, 145, 0.46); box-shadow: 0 12px 35px rgba(35, 255, 117, 0.22); }
.universal-theme .kuhu-card-back { border: 1px solid rgba(199, 139, 255, 0.4); box-shadow: 0 12px 35px rgba(199, 139, 255, 0.2); }

.kuhu-back-header {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.mother-theme .kuhu-back-header { color: #ff52a1; border-bottom: 1px solid rgba(255, 82, 161, 0.25); }
.baby-theme .kuhu-back-header { color: #00e5ff; border-bottom: 1px solid rgba(0, 229, 255, 0.25); }
.toys-theme .kuhu-back-header { color: #7dff6a; border-bottom: 1px solid rgba(73, 255, 145, 0.28); }
.universal-theme .kuhu-back-header { color: #c78bff; border-bottom: 1px solid rgba(199, 139, 255, 0.25); }

.kuhu-product-list {
  list-style: none;
  padding: 0 6px 0 0;
  margin: 0 0 14px 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.kuhu-product-list::-webkit-scrollbar { width: 4px; }
.kuhu-product-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.mother-theme .kuhu-product-list::-webkit-scrollbar-thumb { background: #ff52a1; border-radius: 4px; }
.baby-theme .kuhu-product-list::-webkit-scrollbar-thumb { background: #00e5ff; border-radius: 4px; }
.toys-theme .kuhu-product-list::-webkit-scrollbar-thumb { background: #35f78b; border-radius: 4px; }
.universal-theme .kuhu-product-list::-webkit-scrollbar-thumb { background: #b878ff; border-radius: 4px; }

.kuhu-product-item {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: #e6edf3;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.kuhu-product-item:hover { background: rgba(255, 255, 255, 0.08); }

.mother-theme .kuhu-product-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff52a1; display: inline-block; flex-shrink: 0; }
.baby-theme .kuhu-product-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00e5ff; display: inline-block; flex-shrink: 0; }
.toys-theme .kuhu-product-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #35f78b; display: inline-block; flex-shrink: 0; }
.universal-theme .kuhu-product-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b878ff; display: inline-block; flex-shrink: 0; }

.kuhu-product-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kuhu-product-link:hover,
.kuhu-product-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.kuhu-empty-item {
  opacity: 0.7;
  font-style: italic;
}

.kuhu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.mother-theme .kuhu-btn {
  background: linear-gradient(135deg, #ff52a1, #e0006c);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 82, 161, 0.35);
}

.baby-theme .kuhu-btn {
  background: linear-gradient(135deg, #00e5ff, #00b0ff);
  color: #090b0e;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
}

.toys-theme .kuhu-btn {
  background: linear-gradient(135deg, #a2ff6b, #16d977);
  color: #07120c;
  box-shadow: 0 4px 15px rgba(35, 255, 117, 0.38);
}

.universal-theme .kuhu-btn {
  background: linear-gradient(135deg, #d8a3ff, #8c4dff);
  color: #0e0717;
  box-shadow: 0 4px 15px rgba(199, 139, 255, 0.35);
}

.kuhu-btn:hover,
.kuhu-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.kuhu-btn.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .kuhu-experience-wrapper { padding: 20px 12px; border-radius: 16px; }
  .kuhu-card { height: 360px; }
  .kuhu-card-back, .kuhu-front-overlay { padding: 18px; }
  .kuhu-cat-title { font-size: 1.15rem; }
  .kuhu-section-header { gap: 10px; }
  .kuhu-section-title { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .kuhu-card-inner,
  .kuhu-card-front img,
  .kuhu-btn { transition-duration: 0.01ms; }
}
