.openTopSearch {
    background: url(/local/components/dresscode/mobile.search/images/search.png) 50% 50% no-repeat transparent;
    display: inline-block;
    height: 40px;
    width: 60px;
    cursor: pointer;
}

.openTopSearch:hover {
    opacity: 0.7;
}

.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.mobile-search-modal.show {
    display: block;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-modal.show .mobile-search-overlay {
    opacity: 1;
}

.mobile-search-modal.hide .mobile-search-overlay {
    opacity: 0;
}

.mobile-search-wrapper {
    position: relative;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.mobile-search-modal.show .mobile-search-wrapper {
    animation: slideIn 0.3s ease forwards;
}

.mobile-search-modal.hide .mobile-search-wrapper {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    padding-top: max(20px, env(safe-area-inset-top));
}

.mobile-search-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.mobile-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 6px;
    width: auto;
    height: auto;
}

.mobile-search-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.mobile-search-close svg {
    width: 24px;
    height: 24px;
}

.mobile-search-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-search-form-container {
    margin-bottom: 20px;
}

.mobile-search-input-group {
    display: flex;
    gap: 12px;
}

.mobile-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background: #fff;
}

.mobile-search-input:focus {
    border-color: #666666;
}

.mobile-search-button {
    background: url(/local/components/dresscode/mobile.search/images/search.png) 50% 50% no-repeat #f1f1f1;
    width: 54px;
    height: 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-search-button:hover {
    background-color: #f2f2f2;
}

.mobile-search-results {
    margin-top: 20px;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #666666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mobile-search-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-all-results {
    text-align: center;
    margin-top: 20px;
}

.all-results-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.all-results-button:hover {
    opacity: 0.8 !important;
}