/* Homepage search container */
.swh-unique-homepage-search-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 150px 20px 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Geometric background shapes */
.swh-unique-homepage-search-container::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4285f4, #34a853);
    transform: rotate(45deg);
    border-radius: 20px;
    z-index: 1;
}

.swh-unique-homepage-search-container::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #1dd1a1, #10ac84);
    transform: rotate(30deg);
    border-radius: 15px;
    z-index: 1;
}

/* 3D Floating Cubic Shapes */
.swh-unique-homepage-search-container .swh-unique-shape-1 {
    position: absolute;
    bottom: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-1 12s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0.9;
}

.swh-unique-homepage-search-container .swh-unique-shape-1::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, #764ba2, #667eea);
    border-radius: 12px;
    opacity: 0.7;
    z-index: -1;
    transform: translateZ(-20px) rotateX(45deg) rotateY(45deg);
}

.swh-unique-homepage-search-container .swh-unique-shape-1::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    transform: translateZ(10px);
}

.swh-unique-homepage-search-container .swh-unique-shape-2 {
    position: absolute;
    top: 25%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 16px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-2 15s ease-in-out infinite;
    box-shadow: 
        0 25px 50px rgba(240, 147, 251, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    opacity: 0.85;
}

.swh-unique-homepage-search-container .swh-unique-shape-2::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, #f5576c, #f093fb);
    border-radius: 16px;
    opacity: 0.6;
    z-index: -1;
    transform: translateZ(-30px) rotateX(30deg) rotateY(-30deg);
}

.swh-unique-homepage-search-container .swh-unique-shape-2::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    transform: translateZ(15px);
}

/* Additional floating cubic elements */
.swh-unique-homepage-search-container::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 8px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-3 10s ease-in-out infinite;
    box-shadow: 
        0 15px 30px rgba(79, 172, 254, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    opacity: 0.7;
}

.swh-unique-homepage-search-container::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 20%;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    border-radius: 12px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: float-rotate-4 14s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(168, 237, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0.6;
}

/* Keyframe animations for floating cubic shapes */
@keyframes float-rotate-1 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateY(-20px) rotateX(90deg) rotateY(45deg) rotateZ(15deg);
    }
    50% {
        transform: translateY(0px) rotateX(180deg) rotateY(90deg) rotateZ(30deg);
    }
    75% {
        transform: translateY(-15px) rotateX(270deg) rotateY(135deg) rotateZ(45deg);
    }
}

@keyframes float-rotate-2 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    33% {
        transform: translateY(-25px) rotateX(120deg) rotateY(60deg) rotateZ(-20deg);
    }
    66% {
        transform: translateY(10px) rotateX(240deg) rotateY(120deg) rotateZ(-40deg);
    }
}

@keyframes float-rotate-3 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    50% {
        transform: translateY(-30px) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
}

@keyframes float-rotate-4 {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    40% {
        transform: translateY(-18px) rotateX(144deg) rotateY(72deg) rotateZ(36deg);
    }
    80% {
        transform: translateY(8px) rotateX(288deg) rotateY(144deg) rotateZ(72deg);
    }
}

/* Search header styles */
.swh-unique-search-header {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    margin-top: 80px;
}

.swh-unique-search-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 40px;
    line-height: 1.2;
}

.swh-unique-search-subtitle {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 0;
    font-weight: 400;
}

.swh-unique-review-count {
    color: #e53e3e;
    font-weight: 600;
}

/* Search bar container */
.swh-unique-search-bar-container {
    position: relative;
    z-index: 1000;
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto 40px;
}

/* Search bar */
.swh-unique-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
}

.swh-unique-search-bar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.swh-unique-search-bar:focus-within {
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
}

/* Search input */
#swh-unique-homepage-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 0;
    font-size: 16px;
    color: #2d3748;
    background: transparent;
    font-weight: 400;
    height: 56px;
    box-sizing: border-box;
}

#swh-unique-homepage-search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Search button */
#swh-unique-homepage-search-button {
    background: #4285f4;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 56px;
    box-sizing: border-box;
}

#swh-unique-homepage-search-button:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

#swh-unique-homepage-search-button:active {
    transform: translateY(0);
}

/* Search results dropdown */
.sm-search-results-dropdown,
.swh-unique-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.sm-search-results-dropdown.show,
.swh-unique-search-results-dropdown.show {
    display: block !important;
}

/* Ensure search dropdown is always positioned correctly */
.swh-unique-search-bar-container .swh-unique-search-results-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    margin-top: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* High-specificity override for any theme conflicts */
/* Search results dropdown - properly scoped */
.swh-unique-homepage-search-container .swh-unique-search-bar-container .swh-unique-search-results-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: none !important;
}

.swh-unique-homepage-search-container .swh-unique-search-bar-container .swh-unique-search-results-dropdown.show {
    display: block !important;
}

/* Search results content container */
.sm-search-results-content,
.swh-unique-search-results-content {
    padding: 0;
    margin: 0;
}

/* Search result items */
.sm-search-result-item,
.swh-unique-search-result-item {
    padding: 16px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search result info and content */
.swh-unique-result-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.swh-unique-result-content {
    flex: 1;
}

.swh-unique-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.swh-unique-result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.swh-unique-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swh-unique-result-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.swh-unique-rating-text {
    font-size: 0.9rem;
    color: #666;
}

.swh-unique-result-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.swh-unique-result-actions {
    flex-shrink: 0;
}

.swh-unique-view-details-btn {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.swh-unique-view-details-btn:hover {
    background: linear-gradient(45deg, #1D4ED8, #1E40AF);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.sm-search-result-item:hover,
.swh-unique-search-result-item:hover {
    background-color: #f7fafc;
}

.sm-search-result-item:last-child,
.swh-unique-search-result-item:last-child {
    border-bottom: none;
}

/* Loading and error states */
.sm-search-loading,
.sm-search-error,
.sm-no-results,
.swh-unique-search-loading,
.swh-unique-search-error,
.swh-unique-no-results {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.sm-search-error,
.swh-unique-search-error {
    color: #e53e3e;
}

/* Trending searches */
.swh-unique-trending-searches {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    /* Ensure trending section doesn't interfere with search dropdown */
    margin-top: 40px;
    clear: both;
}

/* Browse by Category Section */
.swh-unique-browse-categories {
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    clear: both;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.swh-unique-browse-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swh-unique-browse-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
}

/* Category Cards Grid */
.swh-unique-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.swh-unique-category-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.swh-unique-category-card:hover {
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.2);
    background: #f8f9ff;
}

.swh-unique-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.swh-unique-category-card:hover::before {
    transform: translateY(0);
}

.swh-unique-category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.swh-unique-category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.swh-unique-category-count {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.swh-unique-trending-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a !important;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swh-unique-trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.swh-unique-trending-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    text-decoration: none;
    color: #2d3748 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.swh-unique-trending-item:hover {
    background: #4285f4;
    color: white !important;
    border-color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
    text-decoration: none;
}

.swh-unique-trending-icon {
    font-size: 14px;
    filter: brightness(1.2);
}

/* Most Popular Software Categories */
.sm-popular-categories-wrapper {
    background: #ffffff;
    padding: 60px 0;
    margin-top: 40px;
}

.sm-popular-categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sm-categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.sm-categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.sm-categories-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 0;
}

/* Two column layout */
.sm-categories-two-column {
    display: flex !important;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Left column - Categories list */
.sm-categories-left {
    flex: 0 0 350px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    min-height: 500px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    width: 350px;
    max-width: 350px;
}

/* Ensure categories list is always visible */
.sm-categories-left,
.sm-categories-left * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.sm-categories-vertical-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.sm-categories-left h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.sm-categories-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sm-category-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sm-category-item.sm-category-active {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.sm-category-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.sm-category-link:hover {
    color: #2d3748;
    background: rgba(66, 133, 244, 0.1);
}

.sm-category-active .sm-category-link {
    color: #ff6b6b;
    font-weight: 600;
}

/* Right column - Software display */
.sm-software-right {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    min-height: 400px;
}

.sm-category-software-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.sm-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sm-software-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sm-software-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.sm-software-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sm-software-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.sm-software-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.sm-popular-cat-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sm-popular-cat-stars {
    display: flex;
    gap: 2px;
}

.sm-popular-cat-star-filled {
    color: #f6ad55;
    font-size: 14px;
}

.sm-popular-cat-star-half {
    color: #f6ad55;
    font-size: 14px;
    opacity: 0.7;
}

.sm-popular-cat-star-empty {
    color: #e2e8f0;
    font-size: 14px;
}

.sm-popular-cat-rating-text {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.sm-software-actions {
    margin-top: 15px;
}

.sm-view-details-btn {
    background: #4285f4;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.sm-view-details-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
    color: white;
}

.sm-default-message {
    text-align: center;
    color: #718096;
    font-style: italic;
    margin-top: 40px;
}

/* Loading state */
#sm-category-software-loading {
    display: none;
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px;
}

/* Properly scoped search bar container styles */
.swh-unique-homepage-search-container .swh-unique-search-bar-container {
    max-width: 1100px !important;
    width: 100% !important;
}

.swh-unique-homepage-search-container .swh-unique-search-bar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Container-specific overrides */
.swh-unique-homepage-search-container .swh-unique-search-bar-container {
    max-width: 1100px !important;
    width: 100% !important;
}

.swh-unique-homepage-search-container .swh-unique-search-bar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .sm-categories-two-column {
        flex-direction: column;
        gap: 20px;
    }
    
    .sm-categories-left {
        flex: 1;
        min-width: 100%;
    }
    
    .sm-software-right {
        flex: 1;
        min-width: 100%;
    }
    
    .sm-software-grid {
        grid-template-columns: 1fr;
    }
    
    .sm-search-title {
        font-size: 2.5rem;
    }
    
    .swh-unique-homepage-search-container {
        padding: 120px 20px 40px 20px;
    }
    
    .sm-homepage-search-wrapper {
        padding: 150px 0 60px 0;
    }
    
    .swh-unique-search-header {
        margin-bottom: 40px;
        margin-top: 60px;
    }
    
    .sm-search-bar-container {
        max-width: 95% !important;
        margin-bottom: 40px !important;
        margin-top: -10px !important;
    }
    
    .sm-homepage-search-wrapper .sm-search-bar-container {
        max-width: 95% !important;
        margin-bottom: 40px !important;
        margin-top: -10px !important;
    }
    
    .sm-homepage-search-wrapper .sm-search-bar input#sm-homepage-search-input {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        height: 48px !important;
    }
    
    .sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button {
        padding: 16px 20px !important;
        min-width: 80px !important;
        height: 48px !important;
    }
    
    .sm-categories-left,
    .sm-software-right {
        padding: 20px;
    }
}

/* Hide search results dropdown by default */
#sm-search-results-dropdown {
    display: none !important;
}

/* Category software loading state */
#sm-category-software-loading {
    display: none !important;
}


/* Clean homepage search wrapper - theme friendly */
.sm-homepage-search-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 0 80px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Decorative geometric shapes - G2 style - Highly specific */
.sm-homepage-search-wrapper.sm-homepage-search-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: -15% !important;
    left: -5% !important;
    width: 400px !important;
    height: 400px !important;
    background: linear-gradient(45deg, #4F46E5, #3B82F6) !important;
    border-radius: 50px !important;
    transform: rotate(25deg) !important;
    opacity: 0.1 !important;
    z-index: 1 !important;
}

.sm-homepage-search-wrapper.sm-homepage-search-wrapper::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15% !important;
    right: -5% !important;
    width: 500px !important;
    height: 500px !important;
    background: linear-gradient(45deg, #059669, #10B981) !important;
    border-radius: 60px !important;
    transform: rotate(-45deg) !important;
    opacity: 0.1 !important;
    z-index: 1 !important;
}

/* Additional decorative elements - Similar to G2 - Highly specific */
.sm-homepage-search-wrapper .sm-homepage-search-container.sm-homepage-search-container::before {
    content: '' !important;
    position: absolute !important;
    top: 10% !important;
    right: 5% !important;
    width: 120px !important;
    height: 120px !important;
    background: linear-gradient(45deg, #EF4444, #F59E0B) !important;
    border-radius: 50% !important;
    opacity: 0.12 !important;
    z-index: 1 !important;
    animation: sm-homepage-float 8s ease-in-out infinite !important;
}

.sm-homepage-search-wrapper .sm-homepage-search-container.sm-homepage-search-container::after {
    content: '' !important;
    position: absolute !important;
    bottom: 20% !important;
    left: 10% !important;
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(45deg, #8B5CF6, #EC4899) !important;
    border-radius: 25px !important;
    opacity: 0.12 !important;
    z-index: 1 !important;
    animation: sm-homepage-float 10s ease-in-out infinite reverse !important;
}

@keyframes sm-homepage-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.sm-homepage-search-wrapper .sm-homepage-search-container.sm-homepage-search-container {
    max-width: 1200px !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.sm-search-header {
    margin-bottom: 60px;
    margin-top: 100px;
}

.sm-homepage-search-wrapper .sm-search-title.sm-search-title {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 45px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    text-align: center !important;
}

.sm-homepage-search-wrapper .sm-search-subtitle.sm-search-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
    color: #4a5568 !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.sm-homepage-search-wrapper .sm-review-count.sm-review-count {
    font-weight: 700 !important;
    color: #ff6b35 !important;
}

.sm-homepage-search-wrapper .sm-search-bar-container {
    position: relative !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    margin-bottom: 60px !important;
    margin-top: -20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sm-homepage-search-wrapper .sm-search-bar.sm-search-bar {
    display: flex !important;
    background: white !important;
    border-radius: 60px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sm-homepage-search-wrapper .sm-search-bar.sm-search-bar:focus-within {
    transform: translateY(-4px) !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15) !important;
    border-color: #3B82F6 !important;
}

.sm-homepage-search-wrapper .sm-search-bar input#sm-homepage-search-input {
    flex: 1 !important;
    padding: 18px 32px !important;
    font-size: 1.1rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #2D3748 !important;
    font-weight: 500 !important;
    height: 56px !important;
    box-sizing: border-box !important;
}

.sm-homepage-search-wrapper .sm-search-bar input#sm-homepage-search-input::placeholder {
    color: #A0AEC0 !important;
    font-weight: 400 !important;
}

.sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button {
    background: #0056D2 !important;
    color: white !important;
    border: none !important;
    padding: 18px 32px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    min-width: 120px !important;
    height: 56px !important;
    box-sizing: border-box !important;
}

.sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button:hover {
    background: #0046B8 !important;
    transform: scale(1.05) !important;
}

.sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button svg {
    transition: transform 0.3s ease !important;
}

.sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button:hover svg {
    transform: scale(1.1) !important;
}

/* Properly scoped homepage search styles */
.sm-homepage-search-wrapper .sm-search-bar-container {
    position: relative !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    margin-bottom: 60px !important;
    margin-top: -20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sm-homepage-search-wrapper .sm-search-bar.sm-search-bar {
    display: flex !important;
    background: white !important;
    border-radius: 60px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.sm-homepage-search-wrapper .sm-search-bar input#sm-homepage-search-input {
    flex: 1 !important;
    padding: 18px 32px !important;
    font-size: 1.1rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #2D3748 !important;
    font-weight: 500 !important;
    height: 56px !important;
    box-sizing: border-box !important;
    width: auto !important;
}

.sm-homepage-search-wrapper .sm-search-bar button#sm-homepage-search-button {
    background: #0056D2 !important;
    color: white !important;
    border: none !important;
    padding: 18px 32px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    min-width: 120px !important;
    height: 56px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.sm-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 16px;
    overflow: hidden;
    border: 2px solid #E2E8F0;
    backdrop-filter: blur(10px);
}

.sm-search-results-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.sm-search-result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #F7FAFC;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 8px;
}

.sm-search-result-item:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sm-search-result-item:last-child {
    border-bottom: none;
}

.sm-result-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sm-result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.sm-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-result-content {
    flex: 1;
    text-align: left;
}

.sm-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.sm-result-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Homepage Search Star Rating Styles */
.sm-homepage-stars {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23e5e7eb"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

.sm-homepage-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23fbbf24"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

/* Legacy support for existing classes */
.sm-stars {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23e5e7eb"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

.sm-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23fbbf24"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/></svg>') repeat-x;
    background-size: 20px 20px;
}

.sm-rating-text {
    font-size: 0.9rem;
    color: #666;
}

.sm-result-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.sm-result-actions {
    flex-shrink: 0;
}

.sm-view-details-btn {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sm-view-details-btn:hover {
    background: linear-gradient(45deg, #1D4ED8, #1E40AF);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.sm-no-results {
    text-align: center;
    padding: 24px;
    color: #666;
    font-size: 1.1rem;
}

/* Search Loading State */
.sm-search-loading {
    text-align: center;
    padding: 20px;
    color: #2563eb;
    font-size: 1rem;
    font-weight: 500;
}

.sm-search-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Error State */
.sm-search-error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    font-size: 1rem;
    background-color: #fee2e2;
    border-radius: 8px;
    margin: 8px;
}

.sm-homepage-search-wrapper .sm-trending-searches {
    margin-top: 50px !important;
}

.sm-homepage-search-wrapper .sm-trending-title {
    font-size: 1.5rem !important;
    margin-bottom: 24px !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
}

.sm-homepage-search-wrapper .sm-trending-list {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.sm-homepage-search-wrapper .sm-trending-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    color: #4a5568 !important;
    transition: all 0.3s !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    font-weight: 500 !important;
}

.sm-homepage-search-wrapper .sm-trending-item:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px) !important;
    color: #2563eb !important;
    text-decoration: none !important;
}

.sm-homepage-search-wrapper .sm-trending-icon {
    font-size: 1.1rem !important;
}

.sm-popular-categories {
    margin-top: 50px;
}

.sm-categories-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.sm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.sm-category-item {
    padding: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
    text-align: center;
}

.sm-category-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: white;
}

/* Trending Searches Section */
.sm-trending-searches {
    margin-top: 60px;
    color: white;
}

.sm-trending-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.sm-trending-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sm-trending-item {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sm-trending-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    transform: translateY(-2px);
}

.sm-trending-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sm-homepage-search-wrapper {
        padding: 120px 15px 40px 15px;
    }
    
    .sm-search-title {
        font-size: 2.5rem;
    }
    
    .sm-search-subtitle {
        font-size: 1.1rem;
    }
    
    .sm-search-bar {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .sm-search-bar input {
        border-radius: 12px 12px 0 0;
        padding: 16px 20px;
    }
    
    .sm-search-bar button {
        border-radius: 0 0 12px 12px;
        padding: 16px 20px;
    }
    
    .sm-trending-list {
        gap: 8px;
    }
    
    .sm-trending-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .sm-categories-grid {
        grid-template-columns: 1fr;
    }
    
    /* Browse by Category responsive */
    .swh-unique-browse-categories {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .swh-unique-browse-title {
        font-size: 1.5rem;
    }
    
    .swh-unique-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .swh-unique-category-card {
        padding: 15px;
    }
    
    .swh-unique-category-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .swh-unique-category-name {
        font-size: 1rem;
    }
    
    .swh-unique-category-count {
        font-size: 0.8rem;
    }
}
