/**
 * Transtoyou Search - Modern Frontend Styles
 * Complete redesign met premium medical look
 * Version: 2.0.0
 */


/* ===================================
   SEARCH BAR CONTAINER
   =================================== */
.tty-search-container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.tty-search-wrapper {
    position: relative;
    width: 100%;
}

/* Country toggle in search results */
.tty-search-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tty-search-country-toggle {
    margin-right: 10px;
    position: relative;
}

.tty-search-country-toggle-count-wrapper {
  display: flex;
  margin-left: auto;
  justify-content: center;
  align-items: center;
}
.tty-search-country-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--tty-text-light);
    border: 1px solid var(--tty-border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tty-search-country-button:hover {
    background: var(--tty-bg-hover);
    border-color: var(--tty-primary);
}

.tty-search-country-button.active {
    background: var(--tty-bg-hover);
    border-color: var(--tty-primary);
}

.tty-search-country-button .fa-truck-ramp-box {
    color: var(--tty-text-light);
}

.tty-search-country-button .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.tty-search-country-button.active .fa-chevron-down {
    transform: rotate(180deg);
}

.tty-search-country-toggle .all-countries-indicator {
  font-size: 12px;
  color: var(--tty-secondary);
  font-weight: 600;
  margin-left: 4px;
}

.tty-search-country-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    transition: all 0.2s ease;
  z-index: 1000;
  background: var(--tty-bg-primary);
  border: 1px solid var(--tty-border-light);
  border-radius: 15px;
  box-shadow: var(--tty-shadow-lg);
  padding: 12px;
  min-width: 250px;
  opacity: 0;
  display: none;
}

.tty-search-country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
    display: block;
}


.tty-search-country-toggle .tty-country-name {
  color: var(--tty-text-light);
}

#search-country-dropdown .tty-show-all-toggle .tty-toggle-label {
  font-size: 14px;
  color: var(--tty-text-secondary);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}


.tty-search-change-country-btn {
    width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--tty-primary);
  color: var(--tty-text-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
    transition: all 0.2s ease;
}

.tty-search-change-country-btn:hover {
    background: var(--tty-primary-dark);
    transform: translateY(-1px);
}

.all-countries-indicator {
    color: var(--tty-primary);
    font-weight: 600;
}


/* ===================================
   MODERN SEARCH INPUT
   =================================== */
.tty-search-wrapper .tty-search-input {
    width: 100%;
    padding: 16px 120px 16px 24px !important;
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-full);
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    background: var(--tty-search-bg);
    color: var(--tty-search-text);
    transition: var(--tty-search-transition);
    box-shadow: var(--tty-search-shadow-sm);
}

[data-theme="dark"] .tty-search-wrapper .tty-search-input {
  border: 2px solid rgba(255, 255, 255, 0.42);
}


.tty-search-input:focus {
    outline: none;
    border-color: var(--tty-search-accent);
    box-shadow: var(--tty-search-shadow-md), 0 0 0 4px rgba(0, 95, 95, 0.1);
    transform: translateY(-1px);
}

.tty-search-input::placeholder {
    color: var(--tty-search-text-muted);
    opacity: 0.7;
}

/* ===================================
   SEARCH BUTTON - MODERN STYLE
   =================================== */
.tty-search-wrapper .tty-search-submit {
    position: absolute !important;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    border: none;
    border-radius: var(--tty-search-radius-full);
    width: 44px;
    height: 44px;;
    cursor: pointer;
    transition: var(--tty-search-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tty-search-shadow-sm);
}

.tty-search-wrapper .tty-search-wrapper .tty-search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--tty-search-shadow-md);
}

.tty-search-wrapper .tty-search-submit:active {
    transform: translateY(-50%) scale(0.95);
}

.tty-search-wrapper .tty-search-submit img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    min-width: 20px;
    min-height: 20px;
}


/* ===================================
   FILTER BUTTON - MODERN STYLE
   =================================== */
.tty-search-filter-toggle {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-full);
    color: var(--tty-search-text-muted);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: var(--tty-search-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-search-filter-toggle:hover {
    color: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    background: rgba(0, 95, 95, 0.05);
}

.tty-search-filter-toggle.active {
    color: var(--tty-text-light);
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
}

/* Active filter indicator */
.tty-search-container.has-active-filters .tty-search-filter-toggle::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: var(--tty-search-secondary);
    border-radius: 50%;
    border: 2px solid var(--tty-search-bg);
    pointer-events: none;
}

/* ===================================
   RESULTS DROPDOWN - GLASSMORPHISM
   =================================== */
.tty-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--tty-search-bg-glass);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-lg);
    box-shadow: var(--tty-search-shadow-lg);
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.tty-search-results.active {
    display: block;
    animation: searchDropdownIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes searchDropdownIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
.tty-search-results::-webkit-scrollbar {
    width: 8px;
}

.tty-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.tty-search-results::-webkit-scrollbar-thumb {
    background: var(--tty-search-border);
    border-radius: 4px;
}

.tty-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--tty-search-accent);
}

/* ===================================
   SKELETON LOADING STATE - MODERN
   =================================== */
.tty-search-skeleton-wrapper {
    padding: 0;
}

.tty-search-category-skeleton {
    position: relative;
    overflow: hidden;
}

.tty-search-category-skeleton:not(:last-child) {
    border-bottom: 1px solid var(--tty-search-border);
}

/* Skeleton Header */
.tty-skeleton-header {
    padding: 16px 20px;
    background: var(--tty-bg-linear-graniet);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.tty-skeleton-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.tty-skeleton-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.tty-skeleton-title {
    width: 120px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.tty-skeleton-count {
    width: 31px;
    height: 31px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    margin-left: auto;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.3);
}

/* Skeleton Items */
.tty-skeleton-items {
    padding: 0;
}

.tty-skeleton-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    margin: 12px;
    background: var(--tty-search-bg);
    border-radius: var(--tty-search-radius-md);
    border: 1px solid var(--tty-bg-secondary);
    position: relative;
    overflow: hidden;
}

.tty-skeleton-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 95, 95, 0.03), transparent);
    animation: shimmer 2s infinite;
}

.tty-skeleton-image {
    width: 100px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--tty-search-radius-sm);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-title-line {
    height: 20px;
    width: 70%;
}

.tty-skeleton-line-short {
    width: 40%;
}

.tty-skeleton-meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tty-skeleton-price {
    width: 60px;
    height: 22px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-badge {
    width: 80px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-stock {
    width: 70px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 20px;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-date,
.tty-skeleton-author,
.tty-skeleton-duration {
    width: 60px;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmerBg 2s infinite;
}

.tty-skeleton-excerpt {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tty-skeleton-indicators {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.tty-skeleton-indicator {
    width: 32px;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmerBg 2s infinite;
}

/* Shimmer Animations */
@keyframes shimmer {
    to { left: 100%; }
}

@keyframes shimmerBg {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark Theme Skeletons */
[data-theme="dark"] .tty-skeleton-image,
[data-theme="dark"] .tty-skeleton-line,
[data-theme="dark"] .tty-skeleton-price,
[data-theme="dark"] .tty-skeleton-badge,
[data-theme="dark"] .tty-skeleton-stock,
[data-theme="dark"] .tty-skeleton-date,
[data-theme="dark"] .tty-skeleton-author,
[data-theme="dark"] .tty-skeleton-duration,
[data-theme="dark"] .tty-skeleton-indicator {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .tty-skeleton-icon,
[data-theme="dark"] .tty-skeleton-title,
[data-theme="dark"] .tty-skeleton-count {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-skeleton-item::before {
    background: linear-gradient(90deg, transparent, rgba(0, 168, 150, 0.03), transparent);
}

/* Mobile Skeleton Adjustments */
@media (max-width: 768px) {
    .tty-skeleton-item {
        gap: 12px;
        padding: 12px;
    }
    
    .tty-skeleton-image {
        width: 80px;
        height: 90px;
    }
    
    .tty-skeleton-title-line {
        height: 18px;
    }
    
    .tty-skeleton-price {
        width: 50px;
        height: 20px;
    }
    
    .tty-skeleton-indicator {
        width: 28px;
        height: 28px;
    }
}

/* Staggered animation delays for natural feel */
.tty-skeleton-item:nth-child(1) .tty-skeleton-image,
.tty-skeleton-item:nth-child(1) .tty-skeleton-line,
.tty-skeleton-item:nth-child(1) .tty-skeleton-price,
.tty-skeleton-item:nth-child(1) .tty-skeleton-indicator {
    animation-delay: 0s;
}

.tty-skeleton-item:nth-child(2) .tty-skeleton-image,
.tty-skeleton-item:nth-child(2) .tty-skeleton-line,
.tty-skeleton-item:nth-child(2) .tty-skeleton-price,
.tty-skeleton-item:nth-child(2) .tty-skeleton-indicator {
    animation-delay: 0.1s;
}

.tty-skeleton-item:nth-child(3) .tty-skeleton-image,
.tty-skeleton-item:nth-child(3) .tty-skeleton-line,
.tty-skeleton-item:nth-child(3) .tty-skeleton-price,
.tty-skeleton-item:nth-child(3) .tty-skeleton-indicator {
    animation-delay: 0.2s;
}


/* ===================================
   SEARCH HISTORY - MODERN CARDS
   =================================== */
.tty-search-history {
    padding: 20px;
}

.tty-search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tty-search-history-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tty-search-text-muted);
}

.tty-search-clear-history {
    font-size: 14px;
    color: var(--tty-search-accent);
    cursor: pointer;
    background-color: rgba(0, 95, 95, 0.05);
    border: none;
    padding: 4px 12px;
    border-radius: var(--tty-search-radius-sm);
    transition: var(--tty-search-transition-fast);
}

.tty-search-clear-history:hover {
    background: rgba(0, 95, 95, 0.1);
}

.tty-search-history-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-search-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--tty-search-bg);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    cursor: pointer;
    transition: var(--tty-search-transition-fast);
    font-size: 15px;
    color: var(--tty-search-text);
}

.tty-search-history-item:hover {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
    transform: translateX(4px);
}

.tty-search-history-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.tty-search-history-item:hover .tty-search-history-icon {
    opacity: 1;
}

/* ===================================
   CATEGORY HEADERS - PREMIUM STYLE
   =================================== */
.tty-search-category {
    position: relative;
    overflow: hidden;
}

.tty-search-category:not(:last-child) {
    border-bottom: 1px solid var(--tty-search-border);
}

.tty-search-category-header {
    padding: 16px 20px;
    background: var(--tty-bg-linear-graniet);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--tty-text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.tty-search-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.tty-search-category-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.tty-search-category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 11px;
    border-radius: 30px;
    font-size: 14px;
    margin-left: auto;
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.3);
}

/* ===================================
   PRODUCT ITEMS - MODERN CARDS
   =================================== */
.tty-search-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 12px;
    margin: 12px;
    cursor: pointer;
    transition: var(--tty-search-transition);
    text-decoration: none;
    color: var(--tty-search-text) !important;
    background: var(--tty-search-bg);
    border-radius: var(--tty-search-radius-md);
    border: 1px solid var(--tty-bg-secondary);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.tty-search-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tty-bg-linear-graniet);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.tty-search-item:hover {
    border-color: var(--tty-search-accent);
    box-shadow: var(--tty-search-shadow-md);
    transform: translateY(-2px);
}

.tty-search-item:hover::before {
    opacity: 0.03;
}

.tty-search-item.focused {
    background: var(--tty-search-accent);
    color: var(--tty-text-light);
    border-color: var(--tty-search-accent);
}

/* Product Image - Modern Style */
.tty-search-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--tty-search-radius-sm);
    background: var(--tty-search-bg);
    position: relative;
}

.tty-search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.tty-search-item:hover .tty-search-item-image img {
    transform: scale(1.05);
}

/* Product Content */
.tty-search-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: auto 0px;
}

.tty-search-item-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tty-search-text);
}

.tty-search-item.focused .tty-search-item-title {
    color: var(--tty-text-light);
}

/* Product Meta - Modern Layout */
.tty-search-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--tty-search-text-muted);
}

.tty-search-item.focused .tty-search-item-meta {
    color: rgba(255, 255, 255, 0.9);
}

/* Price - Premium Style */
.tty-search-item-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--tty-search-accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tty-search-item.focused .tty-search-item-price {
    color: var(--tty-text-light);
}

/* Category Pills */
.tty-search-item-category {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(0, 95, 95, 0.08);
    border-radius: var(--tty-search-radius-full);
    font-weight: 500;
}

[data-theme="dark"] .tty-search-item-category {
    background: rgba(0, 168, 150, 0.15);
}

/* Stock Status - Modern Badge */
.tty-search-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--tty-search-radius-full);
}

.tty-search-stock-status.in-stock {
    background: rgba(34, 177, 137, 0.1);
    color: #22b189;
}

.tty-search-stock-status.out-of-stock {
    background: rgba(191, 97, 82, 0.1);
    color: var(--tty-search-error);
}

.tty-search-item.focused .tty-search-stock-status {
    background: rgba(255, 255, 255, 0.2);
    color: var(--tty-text-light);
}

/* Dosage Badge */
.tty-search-item-dosage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    border-radius: var(--tty-search-radius-full);
}

/* Multiple Variants */
.tty-search-multiple-variants {
    color: var(--tty-text-light);
    font-size: 13px;
    line-height: 1.4;
}

.tty-search-variant-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tty-search-secondary);
    color: var(--tty-text-light);
    padding: 4px 10px;
    border-radius: var(--tty-search-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.tty-search-variant-count svg {
    width: 14px;
    height: 14px;
}

/* Medical Indicators - Modern Style */
.tty-search-indicators {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
    max-height: 115px;
}

.tty-search-item-content .tty-search-indicator {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--tty-search-transition-fast);
    position: relative;
    overflow: hidden;
    min-width: 32px !important;
    min-height: 32px !important;
}

.tty-search-indicator svg {
    width: 22px;
    height: 22px;
    color: var(--tty-text-light);
    fill: var(--tty-text-light);
    z-index: 1;
}

.tty-search-results .tty-search-unavailable-badge {
  margin-bottom: 2px;
}

/* Indicator specific colors */
.tty-search-indicator.prescription {
    background: linear-gradient(135deg, #ee9118, #f1a968);
}

.tty-search-indicator.out-of-stock {
    background: linear-gradient(135deg, #be3227, #d4453a);
    color: var(--tty-text-light) !important;
}

.tty-search-indicator.addictive {
    background: linear-gradient(135deg, #985004, #b86f1f);
}

.tty-search-indicator.identification {
    background: linear-gradient(135deg, #0077B6, #0099e0);
}

.tty-search-indicator.video-consult {
    background: linear-gradient(135deg, #5944be, #7059d9);
    fill: var(--tty-text-light);
}

.tty-search-indicator.transform-box {
    background: var(--tty-bg-linear-graniet);
}

.tty-search-indicator:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Highlight Search Term */
.tty-search-highlight {
    background: linear-gradient(135deg, #E5924C54, #f1a96842);
    padding: 2px 2px;
    border-radius: 4px;
    font-weight: 700;
}

/* ===================================
   NO RESULTS - MODERN EMPTY STATE
   =================================== */
.tty-search-no-results {
    padding: 10px 20px 20px;
    text-align: center;
    color: var(--tty-search-text-muted);
}

.tty-search-no-results-icon {
    width: 160px;
    height: 160px;;
    margin: 0 auto 0px;
    opacity: 0.1;
}

.tty-search-no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tty-header-primary);
    margin-bottom: 8px;
    margin-top: -129px;
}

.tty-search-no-results p {
    font-size: 16px;
    margin-bottom: 0;
}

/* ===================================
   VIEW ALL LINK - MODERN CTA
   =================================== */
.tty-search-view-all {
    display: flex;
    padding: 20px;
    text-align: center;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    font-weight: 600;
    text-decoration: none;
    transition: var(--tty-search-transition);
    align-items: center;
    gap: 12px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tty-search-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.tty-search-view-all:hover {
    color: var(--tty-text-light);
}

.tty-search-view-all:hover::before {
    left: 100%;
}

/* ===================================
   FILTER DROPDOWN - GLASSMORPHISM
   =================================== */
.tty-search-filters-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--tty-search-bg-glass);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-lg);
    box-shadow: var(--tty-search-shadow-lg);
    padding: 24px;
    min-width: 340px;
    max-width: 380px;
    z-index: 1001;
    max-height: 480px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--tty-search-transition);
}

.tty-search-filters-content[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Filter Title */
.tty-search-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Group */
.tty-search-filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tty-search-filter-group + .tty-search-filter-group {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--tty-search-border);
}

/* Filter Options - Modern Toggle Style */
.tty-search-filter-option {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Modern Toggle Switch Design */
.tty-search-filter-toggle-switch {
    width: 100%;
    gap: 16px;
    padding: 14px 16px !important;
    background: var(--tty-search-bg);
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    transition: var(--tty-search-transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.tty-search-filter-toggle-switch:hover {
    border-color: var(--tty-search-accent);
    background: rgba(0, 95, 95, 0.03);
}

.tty-search-filter-toggle-switch.active {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
}

.tty-search-filter-toggle-switch .tty-accessibility-icon {
    background-color: transparent;
    color: var(--tty-search-text);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tty-search-filter-toggle-switch.active .tty-accessibility-icon {
    color: var(--tty-text-light);
}

.tty-search-filter-toggle-switch span:not(.tty-accessibility-icon) {
    flex: 1;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
}

/* Toggle indicator */
.tty-search-filter-toggle-switch::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--tty-search-border);
    border-radius: 50%;
    transition: var(--tty-search-transition-fast);
}

.tty-search-filters-content .tty-search-filter-toggle-switch::before {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--tty-search-accent);
    border-radius: 50%;
    transition: var(--tty-search-transition-fast);
}

.tty-search-filter-toggle-switch.active::after {
    border-color: var(--tty-text-light);
}

.tty-search-filter-toggle-switch.active::before {
    transform: translateY(-50%) scale(1);
    background: white;
}

/* Price Slider - Modern Design */
.tty-search-price-slider {
    position: relative;
}

.tty-search-price-inputs {
  margin-top: 10px;
}

.tty-search-slider-track {
    position: relative;
    height: 6px;
    background: var(--tty-search-border);
    border-radius: 3px;
    margin: 0 10px;
}

.tty-search-slider-range {
    position: absolute;
    height: 100%;
    background: var(--tty-bg-linear-graniet);
    border-radius: 3px;
    left: 0;
    right: 0;
}

.tty-search-slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--tty-search-accent);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: all 0.2s;
    box-shadow: var(--tty-search-shadow-md);
}

.tty-search-slider-thumb:hover {
    box-shadow: 0 0 0 8px rgba(0, 95, 95, 0.1);
    transform: translate(-50%, -50%) scale(1.1);
}

.tty-search-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.9);
}

.tty-search-price-display {
    font-size: 16px;
    font-weight: 700;
    color: var(--tty-search-accent);
    background: rgba(0, 95, 95, 0.08);
    padding: 10px 20px;
    border-radius: var(--tty-search-radius-full);
    display: inline-block;
    margin-top: 16px;
}

/* Filter Actions */
.tty-search-filter-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--tty-search-border);
}

.tty-search-clear-filters {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    color: var(--tty-search-text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tty-search-transition-fast);
}

.tty-search-clear-filters:hover {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
    transform: translateY(-2px);
    box-shadow: var(--tty-search-shadow-md);
}

/* Filter Error Message */
.tty-search-filter-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--tty-search-radius-sm);
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    animation: errorShake 0.3s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ===================================
   MOBILE MODAL - FULL SCREEN DESIGN
   =================================== */
.tty-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tty-bg-primary);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tty-search-modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tty-search-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tty-search-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.tty-search-modal-header {
    position: sticky;
    top: 0;
    background: var(--tty-search-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--tty-search-border);
    z-index: 10;
}

.tty-search-modal-close {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tty-search-transition);
  background: var(--tty-bg-linear-graniet);
  color: var(--tty-text-light);
  z-index: 3;
}

.tty-search-modal-close svg {
  width: 24px;
}

.tty-search-modal-body {
    padding: 20px;
}

/* Mobile trigger button */
.tty-search-mobile-trigger {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    box-shadow: var(--tty-search-shadow-lg);
    cursor: pointer;
    z-index: 100;
    transition: var(--tty-search-transition);
}

.tty-search-mobile-trigger:hover {
    transform: scale(1.1);
    box-shadow: var(--tty-search-shadow-lg), var(--tty-search-shadow-glow);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .tty-search-desktop {
        display: none;
    }
    
    .tty-search-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .tty-search-modal-body {
        padding: 0px;
    }


    .tty-search-results {
        position: static;
        border: none;
        box-shadow: none;
        max-height: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: block;
        animation: searchDropdownIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .tty-search-wrapper .tty-search-input {
        padding: 16px 60px 16px 24px !important;
    }


    .tty-search-item {
        margin: 8px;
        border-radius: var(--tty-search-radius-md);
        border: 1px solid var(--tty-search-border);
    }
    
    .tty-search-filter-toggle {
        right: 60px;
    }
    
    .tty-search-filters-content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--tty-search-radius-lg) var(--tty-search-radius-lg) 0 0;
        max-height: 80vh;
        padding: 32px;
        z-index: 9999;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

@media (max-width: 480px) {
    .tty-search-item {
        gap: 12px;
        padding: 12px;
    }
    
    .tty-search-item-image {
        width: 80px;
        height: 80px;
    }
    
    .tty-search-item-price {
        font-size: 16px;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.tty-search-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.tty-search-input:focus-visible,
.tty-search-submit:focus-visible,
.tty-search-filter-toggle:focus-visible,
.tty-search-item:focus-visible {
    outline: 3px solid var(--tty-search-accent);
    outline-offset: 2px;
}

/* Remove default input styles */
.tty-search-price-min,
.tty-search-price-max,
.tty-search-price-separator {
    display: none !important;
}

/* Hidden checkboxes */
.tty-search-filter-option input[type="checkbox"] {
    display: none !important;
}

/* ===================================
   DARK THEME OPTIMIZATIONS
   =================================== */
[data-theme="dark"] .tty-search-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-search-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--tty-search-accent);
}

[data-theme="dark"] .tty-search-filter-toggle-switch {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-filter-toggle-switch:hover {
    background: rgba(0, 168, 150, 0.1);
}

[data-theme="dark"] .tty-search-history-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tty-search-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   RIPPLE EFFECTS
   =================================== */
.tty-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dark theme ripple */
[data-theme="dark"] .tty-ripple {
    background: rgba(0, 168, 150, 0.3);
}

/* ===================================
   LOADING STATES
   =================================== */
.tty-search-submit.loading {
    pointer-events: none;
    position: relative;
}

.tty-search-submit.loading img {
    opacity: 0;
}

.tty-search-submit.loading::after {
    content: '';
    position: absolute;
    top: 48%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -12px 0 0 -12px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tty-spin 0.8s linear infinite;
}

/* ===================================
   IMAGE LOADING SHIMMER
   =================================== */
.tty-search-item-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

[data-theme="dark"] .tty-search-item-image.loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   ENHANCED HOVER EFFECTS
   =================================== */
.tty-search-item {
    position: relative;
    overflow: hidden;
}

.tty-search-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tty-search-item:hover::before {
    left: 100%;
}

/* ===================================
   FOCUS STATES
   =================================== */
.search-focused .tty-search-input {
    transform: translateY(-1px);
}

.search-focused .tty-search-wrapper {
    filter: drop-shadow(0 8px 24px rgba(0, 95, 95, 0.1));
}

/* ===================================
   CATEGORY BADGES ENHANCEMENT
   =================================== */
.tty-search-item-category {
    position: relative;
    overflow: hidden;
}

.tty-search-item-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: left 0.3s;
}

.tty-search-item:hover .tty-search-item-category::before {
    left: 100%;
}

/* ===================================
   INDICATOR PULSE EFFECT
   =================================== */
.tty-search-indicator {
    position: relative;
    color: var(--tty-text-light);
}

.tty-search-indicator i {
  font-size: 18px;
}

/* Only animate on hover */
.tty-search-indicator::after {
    animation-play-state: paused;
}

.tty-search-item:hover .tty-search-indicator::after {
    animation-play-state: running;
}

/* ===================================
   SMOOTH SCROLLBAR
   =================================== */
.tty-search-results {
    scrollbar-width: thin;
    scrollbar-color: var(--tty-search-accent) transparent;
}

.tty-search-results::-webkit-scrollbar {
    width: 8px;
}

.tty-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.tty-search-results::-webkit-scrollbar-thumb {
    background: var(--tty-search-border);
    border-radius: 4px;
    transition: background 0.3s;
}

.tty-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--tty-search-accent);
}

/* ===================================
   FILTER ANIMATION ENHANCEMENTS
   =================================== */
.tty-search-filter-toggle-switch {
    position: relative;
    overflow: hidden;
}

.tty-search-filter-toggle-switch::after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ===================================
   PRICE SLIDER ENHANCEMENTS
   =================================== */

.tty-search-slider-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 95, 95, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tty-search-slider-thumb:hover::before,
.tty-search-slider-thumb.dragging::before {
    opacity: 1;
}

.tty-search-slider-thumb.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */
@media (max-width: 768px) {
    /* Touch-friendly sizes */
    .tty-search-item {
        padding: 16px 12px;
        -webkit-tap-highlight-color: rgba(0, 95, 95, 0.1);
    }
    
    .tty-search-filter-toggle-switch {
        min-height: 48px;
    }
    
    .tty-search-indicator {
        width: 36px;
        height: 36px;
    }
    
    .tty-search-submit {
        display: none !important;
    }
    
    /* Disable hover effects on mobile */
    @media (hover: none) {
        .tty-search-item::before,
        .tty-search-category-header::before,
        .tty-search-indicator::after {
            display: none;
        }
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tty-search-item {
        border: 2px solid var(--tty-search-text);
    }
    
    .tty-search-indicator {
        border: 2px solid currentColor;
    }
    
    .tty-search-highlight {
        background: var(--tty-search-text);
        color: var(--tty-search-bg);
        text-decoration: underline;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .tty-search-container,
    .tty-search-modal,
    .tty-search-mobile-trigger {
        display: none !important;
    }
}

/* ===================================
   SPECIAL EFFECTS
   =================================== */

/* Glow effect for active elements */
.tty-search-filter-toggle.active {
    box-shadow: 0 0 20px rgba(0, 95, 95, 0.3);
}

/* Smooth height transitions */
.tty-search-results {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D transform for depth */
.tty-search-item:hover {
    transform: translateY(-2px) translateZ(0);
    backface-visibility: hidden;
}

/* ===================================
   FINAL POLISH
   =================================== */
/* Subtle animations for micro-interactions */
.tty-search-indicator svg {
    transition: transform 0.2s ease;
}

.tty-search-item:hover .tty-search-indicator svg {
    transform: scale(1.1) rotate(5deg);
}

/* Better text rendering */
.tty-search-wrapper {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* GPU acceleration for smooth animations */
.tty-search-item,
.tty-search-filter-toggle-switch {
    will-change: transform;
    transform: translateZ(0);
}

/* ===================================
   BURN EFFECT VOOR CLEAR HISTORY
   Voeg dit toe aan tty-search-frontend.css
   =================================== */

/* Burn Away Animation */
@keyframes burnAway {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1) hue-rotate(0deg);
    }
    25% {
        opacity: 0.9;
        filter: brightness(1.2) hue-rotate(20deg) contrast(1.5);
        transform: scale(1.02) translateY(-2px);
    }
    50% {
        opacity: 0.7;
        filter: brightness(1.5) hue-rotate(45deg) contrast(2) saturate(2);
        transform: scale(0.98) translateY(0);
    }
    75% {
        opacity: 0.3;
        filter: brightness(0.8) hue-rotate(90deg) blur(2px);
        transform: scale(0.9) translateY(10px) rotate(5deg);
    }
    100% {
        opacity: 0;
        filter: brightness(0) hue-rotate(180deg) blur(10px);
        transform: scale(0.5) translateY(30px) rotate(15deg);
    }
}

.tty-search-history-item.burning {
    animation: burnAway 0.8s ease-out forwards;
    position: relative;
}

/* Glow effect tijdens burn */
.tty-search-history-item.burning::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
    opacity: 0;
    animation: ashGlow 0.8s ease-out;
    pointer-events: none;
}

@keyframes ashGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* Particle Effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b35;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 6px #ff6b35;
    animation: particleFly 1s ease-out forwards;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(0);
    }
}

/* Clear History Button Animation */
.tty-search-clear-history.clearing {
    position: relative;
    color: #ff6b35;
    animation: buttonPulse 0.6s ease-out;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* History Section Dissolve */
.tty-search-history.clearing-all {
    animation: historyDissolve 0.8s ease-out forwards;
}

@keyframes historyDissolve {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        height: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Success Message */
.tty-search-history-cleared {
    text-align: center;
    padding: 20px;
    color: var(--tty-search-text-muted);
    animation: successFadeIn 0.5s ease-out;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tty-search-history-cleared svg {
    width: 40px;
    height: 40px;
    color: var(--tty-search-accent);
    margin-bottom: 10px;
    animation: checkmarkPop 0.6s ease-out;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .particle {
    background: #ff8a50;
    box-shadow: 0 0 8px #ff8a50;
}

[data-theme="dark"] .tty-search-history-item.burning::after {
    background: radial-gradient(circle, #ff8a50 0%, transparent 70%);
}

/**
 * Smart Suggestions Styling
 * Voeg toe aan tty-search-frontend.css
 */

/* ===================================
   NO RESULTS SUGGESTIONS
   =================================== */

/* Loading state */
.tty-search-no-results .tty-search-suggestions-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--tty-search-text-muted);
    font-size: 14px;
    justify-content: center;
}

.tty-search-no-results .tty-search-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--tty-search-border);
    border-top-color: var(--tty-search-accent);
    border-radius: 50%;
    animation: tty-spin 0.8s linear infinite;
}

/* Suggestions container */
.tty-search-no-results .tty-search-suggestions-container {
    margin-top: 30px;
    width: 100%;
}

/* Did you mean section */

.tty-search-no-results .tty-search-did-you-mean h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

/* Suggestion pills */
.tty-search-no-results .tty-search-suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tty-search-no-results .tty-search-suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--tty-text-light);
    text-decoration: none;
    border-radius: var(--tty-search-radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-search-no-results .tty-search-suggestion-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
    color: var(--tty-text-light);
}

.tty-search-no-results .tty-search-suggestion-pill.clicked {
    animation: pillClick 0.3s ease;
}

@keyframes pillClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.tty-search-no-results .tty-search-suggestion-pill svg {
    width: 16px;
    height: 16px;
}

/* Popular suggestions */
.tty-search-no-results .tty-search-popular-suggestions {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-popular-suggestions h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

.tty-search-no-results .tty-search-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-search-no-results .tty-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--tty-search-bg);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.2s ease;
}

.tty-search-no-results .tty-search-suggestion-item:hover {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
    transform: translateX(4px);
}

.tty-search-no-results .tty-search-suggestion-icon {
    width: 32px;
    height: 32px;
    background: var(--tty-bg-linear-graniet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-light);
}

.tty-search-no-results .tty-search-suggestion-item:hover .tty-search-suggestion-icon {
    background: white;
    color: var(--tty-search-accent);
}

.tty-search-no-results .tty-search-suggestion-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--tty-search-text-muted);
    background: var(--tty-search-bg);
    padding: 2px 8px;
    border-radius: 12px;
}

.tty-search-no-results .tty-search-suggestion-item:hover .tty-search-suggestion-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--tty-text-light);
}

/* Category suggestions */
.tty-search-no-results .tty-search-category-suggestions h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

.tty-search-no-results .tty-search-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.tty-search-no-results .tty-search-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--tty-search-bg);
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    text-align: center;
    transition: all 0.3s ease;
}

.tty-search-no-results .tty-search-no-results .tty-search-category-card:hover {
    border-color: var(--tty-search-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 95, 95, 0.15);
}

.tty-search-no-results .tty-search-no-results .tty-search-category-icon {
    width: 48px;
    height: 48px;
    background: var(--tty-bg-linear-graniet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-light);
    transition: all 0.3s ease;
}

.tty-search-no-results .tty-search-category-card:hover .tty-search-category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Dark theme adjustments */
[data-theme="dark"] .tty-search-no-results .tty-search-suggestion-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-no-results .tty-search-category-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-no-results .tty-search-suggestion-count {
    background: rgba(255, 255, 255, 0.05);
}

/* Popular products list */
.tty-search-no-results .tty-search-popular-products {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-popular-products h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

.tty-search-no-results .tty-search-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tty-search-no-results .tty-search-product-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--tty-search-bg);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.2s ease;
}

.tty-search-no-results .tty-search-product-suggestion:hover {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
    transform: translateX(4px);
}

.tty-search-no-results .tty-search-product-icon {
    width: 32px;
    height: 32px;
    background: var(--tty-bg-linear-graniet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-light);
}

.tty-search-no-results .tty-search-product-suggestion:hover .tty-search-product-icon {
    background: white;
    color: var(--tty-search-accent);
}

.tty-search-no-results .tty-search-product-suggestion .arrow {
    margin-left: auto;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.tty-search-no-results .tty-search-product-suggestion:hover .arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Blog suggestions */
.tty-search-no-results .tty-search-blog-suggestions {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-blog-suggestions h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

.tty-search-no-results .tty-search-blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tty-search-no-results .tty-search-blog-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--tty-search-bg);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.2s ease;
}

.tty-search-no-results .tty-search-blog-item:hover {
    border-color: var(--tty-search-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.1);
}

 .tty-search-no-results.tty-search-blog-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 95, 95, 0.1);
    border-radius: var(--tty-search-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-search-accent);
    flex-shrink: 0;
}

.tty-search-no-results .tty-search-blog-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tty-search-text);
}

.tty-search-no-results.tty-search-blog-content p {
    margin: 0;
    font-size: 13px;
    color: var(--tty-search-text-muted);
    line-height: 1.4;
}

/* Category cards - enhanced */
.tty-search-no-results .tty-search-category-card small {
    font-size: 11px;
    color: var(--tty-search-text-muted);
    margin-top: 4px;
}

/* No suggestions fallback */
.tty-search-no-results .tty-search-no-suggestions {
    text-align: center;
    padding: 20px;
}

.tty-search-no-results .tty-search-no-suggestions p {
    color: var(--tty-search-text-muted);
    margin-bottom: 20px;
}

.tty-search-no-results .tty-search-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    text-decoration: none;
    border-radius: var(--tty-search-radius-full);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tty-search-no-results .tty-search-browse-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 95, 95, 0.3);
    color: var(--tty-text-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tty-search-no-results .tty-search-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .tty-search-no-results .tty-search-category-card {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .tty-search-no-results .tty-search-category-icon {
        width: 40px;
        height: 40px;
    }
    
    .tty-search-no-results .tty-search-blog-item {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================================
   TREATMENT SUGGESTIONS
   =================================== */

/* Treatment list container */
.tty-search-no-results .tty-search-treatment-suggestions {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-treatment-suggestions h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

.tty-search-no-results .tty-search-treatment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Treatment item */
.tty-search-no-results .tty-search-treatment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--tty-search-bg);
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-search-no-results .tty-search-treatment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tty-search-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tty-search-no-results .tty-search-treatment-item:hover {
    border-color: var(--tty-search-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.15);
}

.tty-search-no-results .tty-search-treatment-item:hover::before {
    transform: scaleY(1);
}

/* Treatment icon */
.tty-search-no-results .tty-search-treatment-icon {
    width: 40px;
    height: 40px;
    background: var(--tty-bg-linear-graniet);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-text-light);
    flex-shrink: 0;
}

.tty-search-no-results .tty-search-treatment-item:hover .tty-search-treatment-icon {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Treatment content */
.tty-search-no-results .tty-search-treatment-content {
    flex: 1;
}

.tty-search-no-results .tty-search-treatment-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--tty-search-text);
}

.tty-search-no-results .tty-search-treatment-content p {
    margin: 0;
    font-size: 14px;
    color: var(--tty-search-text-muted);
    line-height: 1.4;
}

/* Popular treatments section */
.tty-search-no-results .tty-search-popular-treatments {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-popular-treatments h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

/* Treatment suggestion (simpler style) */
.tty-search-no-results .tty-search-treatment-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--tty-search-bg);
    border: 1px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.2s ease;
}

.tty-search-no-results .tty-search-treatment-suggestion:hover {
    background: var(--tty-search-accent);
    border-color: var(--tty-search-accent);
    color: var(--tty-text-light);
    transform: translateX(4px);
}

.tty-search-no-results .tty-search-treatment-suggestion .tty-search-treatment-icon {
    width: 32px;
    height: 32px;
    background: var(--tty-bg-linear-graniet);
}

.tty-search-no-results .tty-search-treatment-suggestion:hover .tty-search-treatment-icon {
    background: white;
    color: var(--tty-search-accent);
}

/* Featured treatments */
.tty-search-no-results .tty-search-featured-treatments {
    margin-bottom: 25px;
}

.tty-search-no-results .tty-search-featured-treatments h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
}

/* Browse treatments button */
.tty-search-no-results .tty-search-browse-treatments {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    text-decoration: none;
    border-radius: var(--tty-search-radius-full);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-left: 10px;
}

.tty-search-no-results .tty-search-browse-treatments:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 95, 95, 0.3);
    color: var(--tty-text-light);
}

/* Treatment badge for mixed results */
.tty-search-item-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    border-radius: var(--tty-search-radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tty-search-item-type-badge.treatment {
    background: linear-gradient(135deg, #22b189, #00a896);
}

/* Dark theme adjustments for treatments */
[data-theme="dark"] .tty-search-no-results .tty-search-treatment-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-no-results .tty-search-treatment-suggestion {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for treatments */
@media (max-width: 768px) {
    .tty-search-no-results .tty-search-treatment-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .tty-search-no-results .tty-search-treatment-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===================================
   NO RESULTS - IMPROVED LAYOUT
   =================================== */

/* Hide loading spinner for suggestions */
.tty-search-suggestions-loading {
    display: none !important;
}

/* Did you mean section */
.tty-search-did-you-mean {
    margin: 20px 0 0px 0;
}

.tty-search-did-you-mean h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 12px;
    text-align: center;
}

.tty-search-suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tty-search-suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
    text-decoration: none;
    border-radius: var(--tty-search-radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-search-suggestion-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.3);
    color: var(--tty-text-light);
}

.tty-search-suggestion-pill.clicked {
    animation: pillClick 0.3s ease;
}

@keyframes pillClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.tty-search-suggestion-pill svg {
    width: 16px;
    height: 16px;
}

/* Popular items section */
.tty-search-popular-items {
    margin-top: 35px;
}

.tty-search-popular-items h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tty-search-text);
    margin-bottom: 20px;
    text-align: center;
}

.tty-search-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.tty-search-popular-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--tty-search-bg);
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tty-search-popular-card:hover {
    border-color: var(--tty-search-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 95, 95, 0.1);
}

.tty-search-popular-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
}

.tty-search-popular-card.product .tty-search-popular-type {
    background: rgba(0, 95, 95, 0.1);
    color: var(--tty-search-accent);
}

.tty-search-popular-card.treatment .tty-search-popular-type {
    background: rgba(34, 177, 137, 0.1);
    color: #22b189;
}

.tty-search-popular-card.blog .tty-search-popular-type {
    background: rgba(229, 146, 76, 0.1);
    color: var(--tty-search-secondary);
}

.tty-search-popular-card h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--tty-search-text);
  line-height: 1.3;
  text-align: left;
}

.tty-search-popular-card:hover h5 {
    color: var(--tty-search-accent);
}

.tty-search-popular-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tty-search-accent);
    margin: 5px 0;
}

.tty-search-popular-card p {
    font-size: 13px;
    color: var(--tty-search-text-muted);
    line-height: 1.4;
    margin: 5px 0 0 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .tty-search-popular-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-popular-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--tty-search-accent);
}

/* ===================================
   DISCOVER STATE - EMPTY HISTORY
   =================================== */
.tty-search-discover {
    padding: 24px;
}

.tty-search-discover-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tty-search-discover-icon {
    font-size: 16px;
    color: var(--tty-search-accent);
}

.tty-search-discover-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tty-search-text-muted);
}

.tty-search-discover-loading {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.tty-search-discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.tty-search-discover-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--tty-search-bg);
    border: 1.5px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-md);
    text-decoration: none;
    color: var(--tty-search-text);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tty-search-discover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tty-search-discover-card.product::before {
    background: var(--tty-search-accent);
}

.tty-search-discover-card.treatment::before {
    background: #22b189;
}

.tty-search-discover-card.tty_blog::before {
    background: var(--tty-search-secondary);
}

.tty-search-discover-card:hover {
    border-color: var(--tty-search-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 95, 95, 0.08);
}

.tty-search-discover-card:hover::before {
    opacity: 1;
}

.tty-search-discover-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 0;
}

.tty-search-discover-card.product .tty-search-discover-type {
    color: var(--tty-search-accent);
}

.tty-search-discover-card.treatment .tty-search-discover-type {
    color: #22b189;
}

.tty-search-discover-card.tty_blog .tty-search-discover-type {
    color: var(--tty-search-secondary);
}

.tty-search-discover-type i {
    font-size: 13px;
}

.tty-search-discover-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--tty-search-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tty-search-discover-card:hover h5 {
    color: var(--tty-search-accent);
}

.tty-search-discover-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--tty-search-accent);
    margin-top: auto;
}

/* Dark theme */
[data-theme="dark"] .tty-search-discover-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tty-search-discover-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--tty-search-accent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .tty-search-discover {
        padding: 16px;
    }
    
    .tty-search-discover-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .tty-search-discover-card {
        padding: 12px;
    }
    
    .tty-search-discover-card h5 {
        font-size: 13px;
    }
    
    .tty-search-discover-price {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .tty-search-discover-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   AI IMAGE SEARCH - CAMERA BUTTON
   =================================== */

/* Modal header flex row for search + camera + close */
.tty-search-modal-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tty-search-modal-header-row .tty-search-form {
    flex: 1;
    min-width: 0;
}

/* Camera button - only visible in modal (mobile) */
.tty-search-camera-btn {
    display: none;
}

.tty-search-modal .tty-search-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--tty-search-border);
    background: var(--tty-search-bg);
    color: var(--tty-search-accent);
    cursor: pointer;
    border-radius: var(--tty-search-radius-full);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tty-search-modal .tty-search-camera-btn i {
  font-size: 26px;
}

.tty-search-modal .tty-search-camera-btn:hover {
    border-color: var(--tty-search-accent);
    background: rgba(0, 95, 95, 0.05);
}

.tty-search-modal .tty-search-camera-btn:active {
    transform: scale(0.92);
}

/* Dark theme */
[data-theme="dark"] .tty-search-modal .tty-search-camera-btn {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--tty-search-accent);
}

[data-theme="dark"] .tty-search-modal .tty-search-camera-btn:hover {
    border-color: var(--tty-search-accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Image search loading / preview state */
.tty-search-image-search-state {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tty-search-image-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--tty-search-radius-md);
    overflow: hidden;
    border: 2px solid var(--tty-search-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tty-search-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Progress bar */
.tty-search-image-progress {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tty-search-image-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--tty-search-border);
    border-radius: 2px;
    overflow: hidden;
}

.tty-search-image-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--tty-search-accent);
    transition: width 0.4s ease;
}

.tty-search-image-progress-fill.analyzing {
    width: 0%;
    animation: imageSearchProgress 8s ease-out forwards;
}

.tty-search-image-progress-fill.complete {
    width: 100%;
    animation: none;
    background: #22b189;
}

@keyframes imageSearchProgress {
    0%   { width: 0%; }
    20%  { width: 30%; }
    50%  { width: 55%; }
    80%  { width: 75%; }
    100% { width: 90%; }
}

/* Status text */
.tty-search-image-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tty-search-text-muted);
}

.tty-search-image-status i {
    font-size: 16px;
    color: var(--tty-search-accent);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.1); }
}

/* Error state */
.tty-search-image-search-state.error {
    padding: 32px 24px;
}

.tty-search-image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.tty-search-image-error i {
    font-size: 28px;
    color: #ef4444;
}

.tty-search-image-error p {
    font-size: 14px;
    color: var(--tty-search-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Dark theme */
[data-theme="dark"] .tty-search-modal .tty-search-camera-btn {
    color: var(--tty-search-accent);
}

[data-theme="dark"] .tty-search-modal .tty-search-camera-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tty-search-image-preview {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tty-search-image-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tty-search-popular-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tty-search-popular-card {
        padding: 12px;
    }
}

/* ===================================
   CLEAR BUTTON - IN SEARCH BAR
   =================================== */
.tty-search-clear-input {
    position: absolute !important;
    right: 60px; /* Positioned before search button */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid var(--tty-search-border);
    border-radius: var(--tty-search-radius-full);
    color: var(--tty-search-text-muted);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: var(--tty-search-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tty-search-clear-input:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.tty-search-clear-input:active {
    transform: translateY(-50%) scale(0.95);
}

.tty-search-clear-input svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Animation for clear button appearance */
.tty-search-clear-input {
    animation: fadeIn 0.2s ease;
}


/* When filter button is also present */
.tty-search-wrapper:has(.tty-search-filter-toggle) .tty-search-clear-input {
    right: 115px; /* Make room for both filter and search button */
}

/* Adjust input padding when clear button is visible */
.tty-search-wrapper:has(.tty-search-clear-input:visible) .tty-search-input {
    padding-right: 100px !important;
}

.tty-search-wrapper:has(.tty-search-filter-toggle):has(.tty-search-clear-input:visible) .tty-search-input {
    padding-right: 150px !important;
}

/* Dark theme support */
[data-theme="dark"] .tty-search-clear-input {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--tty-search-text-muted);
}

[data-theme="dark"] .tty-search-clear-input:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .tty-search-clear-input {
        width: 32px;
        height: 32px;
        right: 55px;
    }
    
    .tty-search-clear-input svg {
        width: 14px;
        height: 14px;
    }
    
    /* In modal */
    .tty-search-modal-content .tty-search-clear-input {
        width: 36px;
        height: 36px;
        right: 55px;
        border: none;
        color: #ca8181;
    }
    
    .tty-search-modal-content .tty-search-clear-input svg {
        width: 24px;
        height: 24px;
    }
    
    /* Adjust input padding on mobile */
    .tty-search-wrapper:has(.tty-search-clear-input:visible) .tty-search-input {
        padding-right: 95px !important;
    }
}

/* Ensure clear button stays visible in modal */
.tty-search-modal-content .tty-search-clear-input {
    z-index: 10;
}

/* Focus state for accessibility */
.tty-search-clear-input:focus {
    outline: 2px solid var(--tty-search-accent);
    outline-offset: 2px;
}

/* Disabled state (if needed) */
.tty-search-clear-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pulse animation when content is cleared */
@keyframes clearPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.tty-search-clear-input.pulse {
    animation: clearPulse 0.4s ease;
}

@keyframes tty-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}