/* =============================================================================
   9. HEADER / INPUT / GRID
============================================================================= */
.shop-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shop-title {
  font-family: var(--font-title);
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.25));
}

.shop-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
  max-width: 600px;
}

.search-main-container {
  width: 100%;
  max-width: 500px;
  /* Constraining the search bar */
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

#search-bar {
  width: 100%;
  padding: 14px 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

#search-bar::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#search-bar:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
}

.items-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 20px;
  padding-bottom: 300px;
}

.loading {
  color: #ccc
}

.no-results {
  color: #ccc
}

/* Clear button for search bars */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  z-index: 10;
  padding-bottom: 2px;
}

.search-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.search-clear-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #000;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* =============================================================================
   10. SHOP ITEM
============================================================================= */
.shop-item {
  width: 200px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  perspective: 1000px;
  opacity: 0;
  animation: itemEnter 0.5s ease-out forwards;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  cursor: pointer;
}

.shop-item:hover {
  transform: translateY(-8px);
}

/* PREMIUM CARD STYLE - USED FOR DESIGNS IN SHOP GRID */
.shop-item--design-result {
  /* Inherits from .design-option, but fits the main shop container better */
  max-width: none;
  width: 100%;
}

.shop-item--design-result:hover {
  border-color: var(--color-gold);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.shop-item-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shop item image wrapper (Unchanged for products) */

.shop-item:hover .shop-item-image-wrapper {
  transform: scale(1.05);
}

.shop-item.has-animated-background .shop-item-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -15px;
  z-index: 0;
  pointer-events: none;
  background: url('../assets/images/sfondi/back.png') center / contain no-repeat;
  animation: frameWobble 15s ease-in-out infinite alternate;
}

.shop-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s ease;
}

/* Shop item images */

.shop-item:hover img {
  transform: scale(1.08);
}

.item-name {
  margin-top: 15px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-white);
  transition: color 0.3s ease;
}

/* Item names (Products) */

/* Rank-based Color Themes (Gacha style) */
.rank-6,
.item-name.rank-6,
.rank-6 .design-star,
.design-name.rank-6 {
  background: linear-gradient(180deg, #ffffb0 0%, #ff3e3e 30%, #ff3ef0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff3e3e;
  /* Fallback */
  filter: drop-shadow(0 0 10px rgba(255, 62, 62, 0.45));
  font-weight: 900 !important;
}



.rank-5,
.item-name.rank-5,
.rank-5 .design-star,
.design-name.rank-5 {
  background: linear-gradient(180deg, #ffffb0 0%, #ffc300 50%, #ffbf3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 62, 62, 0.4));
}


.rank-4,
.item-name.rank-4,
.rank-4 .design-star,
.design-name.rank-4 {
  background: linear-gradient(180deg, #cb9aff 0%, #fd3cc3 50%, #64b3e5 100%);
  text-shadow: 0 0 10px rgb(107 19 255 / 40%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.rank-3,
.item-name.rank-3,
.rank-3 .design-star,
.design-name.rank-3 {
  background: linear-gradient(180deg, #ffffb0 0%, #8fd62d 50%, #c8d62d 100%);
  text-shadow: 0 0 10px rgb(150 255 70 / 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.rank-2,
.item-name.rank-2,
.design-name.rank-2 {
  color: #46ff8a !important;
  text-shadow: 0 0 8px rgba(70, 255, 138, 0.3);
  -webkit-text-fill-color: initial;
}

.rank-1,
.item-name.rank-1,
.design-name.rank-1 {
  color: #e0e0e0 !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  -webkit-text-fill-color: initial;
}

.design-rank-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.design-star {
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
}

/* Detail Title Stars */
.product-info h2 .design-rank-stars {
  display: inline-flex;
  margin: 0 0 0 10px;
  vertical-align: middle;
}

.product-info h2 .design-star {
  font-size: 1.55rem;
  margin-top: -8px;
}

.item-category {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-top: 5px;
  margin-bottom: 12px;
}

.item-price {
  font-family: var(--font-body);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 5px;
}

.shop-item--design-result .item-price {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: auto;
}

.item-price .from-text {
  font-size: 0.85rem;
  text-transform: lowercase;
  /* Restored to lowercase */
  opacity: 0.7;
  color: var(--color-text-muted);
  /* Restored to muted color */
}

/* =============================================================================
   11. SEARCH SUGGESTIONS
============================================================================= */
#search-suggestions {
  display: none !important;
}

.suggestion-item {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.35);
}

/* =============================================================================
   12. PRODUCT DETAIL
============================================================================= */
#product-detail-overlay,
#cart-overlay {
  overflow: hidden;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#product-detail-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 50px;
  align-items: start;
  color: var(--color-white);
}

.product-detail-scroll {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding-top: 60px;
  padding-bottom: 120px;
  will-change: transform;
}

.product-detail-upper-panel {
  width: 84%;
  max-width: 1000px;
  background: linear-gradient(270deg, #1c1c1c 0%, #0a0a0a 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  margin: -60px auto 40px auto;
  /* Centered with side margins */
  padding-top: 25px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
  /* Sharper golden edge */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Variant for the product detail view with the grid on the left */
.product-detail-upper-panel.detail-view {
  position: relative;
  background: linear-gradient(90deg, transparent 40%, #0a0a0a 40%, #1c1c1c 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-top: none;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  min-height: 520px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  overflow: hidden;
}

.product-detail-upper-panel.detail-view::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  height: 100%;
  background: url('../assets/images/worktable.svg') center center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.product-detail-upper-panel.detail-view>* {
  position: relative;
  z-index: 1;
}

/* Modifier for the main shop entryway panel */
.shop-header-panel {
  padding: 40px 60px !important;
  /* Reduced from 85px */
}

.shop-filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-filter-tag {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.shop-filter-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.shop-filter-tag.active {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  border-color: var(--color-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

#product-detail-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}


.detail-cart-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.detail-cart-wrapper .cart-badge {
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  border-width: 1.5px;
}

.detail-cart-wrapper:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
  transform: scale(1.05);
}

.detail-cart-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.product.shop-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.shop-rarity-tip {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: -4px;
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(218, 165, 32, 0.1);
}

.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  perspective: 1200px;
}

.main-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 350px;
  margin-top: 20px;
  margin-left: -60px;
  aspect-ratio: 1 / 1;

  border-radius: 0;
  overflow: visible;
  transition: all 0.3s ease;
}

.item-has-bg .main-image-wrapper {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
}

.product-images .main-image {
  max-width: 350px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  animation: floating 3.5s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

/* Header Spans */
.product-info h2 .design-name {
  font-size: 1.1em;
  padding: 0;
}

.product-info h2 .product-name {
  font-size: 0.75em;
  opacity: 0.7;
  font-family: var(--font-body);
  font-weight: 500;
  margin-left: 12px;
  color: var(--color-white);
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-thumbnails img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base);
}

.product-thumbnails img:hover,
.product-thumbnails img.selected {
  border-color: var(--color-gold);
}

.product-info {
  text-align: left;
}

.product-info h2 {
  margin: 0 0 15px;
  font-family: var(--font-title);
  font-size: 2.2em;
  color: var(--color-gold);
}

.product-info .description,
.product-info .details {
  margin-bottom: 15px;
  line-height: 1.5;
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

.product-info .details strong {
  color: var(--color-white);
}

/* =============================================================================
   13. FOOTER BAR
============================================================================= */
#product-detail-footer,
.cart-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 120;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 3%;
  border-top: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.8);
  font-family: var(--font-title);
  animation: slideUp 0.5s ease-out;
}

.footer-price,
.cart-total {
  margin-right: 25px;
  font-size: 1.8em;
  font-weight: bold;
}

.footer-price,
.cart-total span {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.cart-total {
  color: var(--color-white);
}

/* =============================================================================
   15. DESIGNS
============================================================================= */
#product-design-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  /* Reduced top margin to 0 for seamless transition */
  padding: 20px;
  text-align: center;
  border-top: none;
}


.designs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.designs-heading {
  font-family: var(--font-title);
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
}

.detail-design-search {
  width: min(340px, 100%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.98em;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

/* Unified Design Card Styles */
.design-option {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1.1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
  will-change: transform, opacity;
}

.design-option:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.design-option.selected {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.12);
  transform: translateY(-8px) scale(1.02);
}

.design-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  position: relative;
}

.design-image-container img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.design-option:hover .design-image-container img {
  transform: scale(1.1);
}

.design-info-banner {
  width: 100%;
  padding: 10px 8px 18px 8px;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  position: relative;
  overflow: visible;
}

.design-product-origin {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  /* Subtle Gray */
  text-transform: lowercase;
  /* Default to lowercase */
  letter-spacing: 0.8px;
  margin-top: -1px;
  margin-bottom: 2px;
  font-weight: 500;
  opacity: 0.85;
}

.design-product-origin::first-letter {
  text-transform: uppercase;
}

.design-option .design-name {
  width: 100%;
  padding: 0 4px;
  /* Internal cushion */
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

/* Stars in the Banner */
.design-info-banner .design-rank-stars {
  margin: 0;
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%) scale(1.3);
  /* Larger stars */
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  z-index: 5;
  pointer-events: none;
}

.detail-design-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.detail-design-search:focus {
  border-color: rgba(255, 215, 0, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

.design-search-empty {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
}

/* Grid Handling */
.design-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  justify-content: center;
  gap: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.design-search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 48px auto;
  max-width: 1000px;
  width: 100%;
}

.design-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.design-filter-tag {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.design-filter-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.design-filter-tag.active {
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  border-color: var(--color-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.design-search-input-container {
  flex: 1;
  max-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.design-search-input {
  width: 100%;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.design-search-input:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}

/* Cleanup selected state */
.design-option.selected .design-name {
  color: var(--color-gold);
}

/* =============================================================================
   23. DESIGN RESULTS IN SHOP SEARCH
============================================================================= */

/* Removed item category from designs */



/* Removed legacy design-result image wrapper overrides */

/* -----------------------------------------------------------------------------
   Search suggestions polish
----------------------------------------------------------------------------- */

#search-suggestions {
  gap: 12px;
  padding: 8px 4px;
}

.suggestion-item {
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.suggestion-item__title {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--color-white);
  line-height: 1.2;
}

.suggestion-item__meta {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 215, 0, 0.82);
  white-space: nowrap;
}

.suggestion-item--design {
  border-color: rgba(255, 215, 0, 0.22);
}

.suggestion-item--product {
  border-color: rgba(255, 255, 255, 0.14);
}


@keyframes slideUpSpin {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateY(-180deg) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateY(0deg) scale(1);
  }
}

.animate-design {
  animation: slideUpSpin 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
}

@keyframes happyJiggle {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  20% {
    transform: translateY(-8px) rotate(-3deg) scale(1.02);
  }

  40% {
    transform: translateY(0) rotate(3deg) scale(1.04);
  }

  60% {
    transform: translateY(-5px) rotate(-2deg) scale(1.02);
  }

  80% {
    transform: translateY(0) rotate(2deg) scale(1.01);
  }

  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.main-image.is-happy {
  animation: happyJiggle 0.5s ease-in-out infinite !important;
}

@keyframes floating {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes frameWobble {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate3d(5px, -5px, 0) rotate(1deg) scale(1.02);
  }

  50% {
    transform: translate3d(-3px, 5px, 0) rotate(-1.5deg) scale(1);
  }

  75% {
    transform: translate3d(4px, 1px, 0) rotate(0.8deg) scale(1.01);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}